Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

anova

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anova

Analysis of Variance (ANOVA)

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

ANOVA

Build Status Build Status npm npm npm

An NPM module providing the Analysis of Variance (ANOVA) parametric statistical test. When performing ANOVA, individual observations (values) are grouped into treatments (samples, arrays of values). The analysis is performed on an array of treatments and results in an F-value. Additional values, such as the Sum of Squares, can be computed using the functions described below.

To use it, simply install via NPM and include it in your project file.

	var anova = require('anova');

To compute the F-test of an array of samples use the test function:

	var samples = [[3,3,5,1], [1,2,3]];

	console.log(ss.test(samples)); // 0.8571428571428572

To compute the Sum of Squares use the SS function:

	var ss = anova.SS(samples);

	console.log('The between treatments SS is:', ss.treatments);
	console.log('The error or residual SS is:', ss.residual);
	console.log('The total SS is:', ss.total);

To compute the Degrees of Freedom use the DF function:

	var df = anova.DF(samples);

	console.log('The between treatments DF is:', df.treatments);
	console.log('The error or residual DF is:', df.residual);
	console.log('The total DF is:', df.total);

To compute the Mean Squared use the MS function:

	var ms = anova.MS(samples);

	console.log('The between treatments MS is:', ms.treatments);
	console.log('The error or residual MS is:', ms.residual);

Keywords

FAQs

Package last updated on 18 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc