Skip to content

Find Chi Square, P-value, Degree of Freedom of a contingency Table ie, two dimensional array

License

Notifications You must be signed in to change notification settings

mohamedfasil/chi-square-p-value

Repository files navigation

chi-square-p-value

npm version

Find Chi Square, P-value, Degree of Freedom of a contingency Table ie, two dimensional array

A working sample can be seen here http://statpages.info/chisq.html

Usage

npm install chi-square-p-value

In your file

import Analyse from 'chi-square-p-value';

const contingencyTable = [
	[23, 126],
	[3, 8],
	[1, 6],
	[2, 0]
];

/****
* chi - Chi Square value
* df - Degree of Freedom
* pValue - P Value
* residual - Adjusted Residual values of array
***/

const { chi, df, pValue, residual } = Analyse(contingencyTable);

About

Find Chi Square, P-value, Degree of Freedom of a contingency Table ie, two dimensional array

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •