{"id":21126727,"url":"https://github.com/lukem512/anova","last_synced_at":"2025-07-08T23:32:28.390Z","repository":{"id":57146047,"uuid":"56251144","full_name":"lukem512/anova","owner":"lukem512","description":"Analysis of Variance (ANOVA)","archived":false,"fork":false,"pushed_at":"2017-07-31T11:43:58.000Z","size":6,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-25T08:54:17.722Z","etag":null,"topics":["analysis","anova","degrees-of-freedom","f-value","mean-squared","statistics","sum-of-squares","variance"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/anova","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lukem512.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-14T16:00:14.000Z","updated_at":"2023-10-18T14:02:27.000Z","dependencies_parsed_at":"2022-09-06T13:02:28.235Z","dependency_job_id":null,"html_url":"https://github.com/lukem512/anova","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lukem512/anova","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukem512%2Fanova","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukem512%2Fanova/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukem512%2Fanova/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukem512%2Fanova/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukem512","download_url":"https://codeload.github.com/lukem512/anova/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukem512%2Fanova/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263861996,"owners_count":23521357,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analysis","anova","degrees-of-freedom","f-value","mean-squared","statistics","sum-of-squares","variance"],"created_at":"2024-11-20T04:45:03.716Z","updated_at":"2025-07-08T23:32:28.060Z","avatar_url":"https://github.com/lukem512.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ANOVA\n\n[![Build Status](https://travis-ci.org/lukem512/anova.svg?branch=master)](https://travis-ci.org/lukem512/anova) ![Build Status](https://david-dm.org/lukem512/anova.svg) [![npm](https://img.shields.io/npm/l/anova.svg)](https://www.npmjs.com/package/anova) [![npm](https://img.shields.io/npm/v/anova.svg)](https://www.npmjs.com/package/anova) [![npm](https://img.shields.io/npm/dm/anova.svg)](https://www.npmjs.com/package/anova)\n\nAn 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.\n\nTo use it, simply [install via NPM](https://www.npmjs.com/package/anova/tutorial) and include it in your project file.\n\n```js\nvar anova = require('anova');\n```\n\nTo compute the F-test of an array of samples use the `test` function:\n\n```js\nvar samples = [[3,3,5,1], [1,2,3]];\nconsole.log(anova.test(samples)); // 0.8571428571428572\n```\n\nTo compute the Sum of Squares use the `SS` function:\n\n```js\nvar ss = anova.SS(samples);\nconsole.log('The between treatments SS is:', ss.treatments);\nconsole.log('The error or residual SS is:', ss.residual);\nconsole.log('The total SS is:', ss.total);\n```\n\nTo compute the Degrees of Freedom use the `DF` function:\n\n```js\nvar df = anova.DF(samples);\nconsole.log('The between treatments DF is:', df.treatments);\nconsole.log('The error or residual DF is:', df.residual);\nconsole.log('The total DF is:', df.total);\n```\n\nTo compute the Mean Squared use the `MS` function:\n\n```js\nvar ms = anova.MS(samples);\nconsole.log('The between treatments MS is:', ms.treatments);\nconsole.log('The error or residual MS is:', ms.residual);\n```\n\n### Related Modules\n\n- [brown-forsythe-test](https://github.com/lukem512/brown-forsythe-test)\n- [levene-test](https://github.com/lukem512/levene-test)\n- [mann-whitney-utest](https://github.com/lukem512/mann-whitney-utest)\n- [statistical-methods](https://github.com/lukem512/statistical-methods)\n\n### License\n\nMIT © Luke Mitchell\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukem512%2Fanova","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukem512%2Fanova","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukem512%2Fanova/lists"}