gtest
Calculate a G-test.
example
var gtest = ;var chi = ;var g = ;console;var p = 1 - chi;console;
output:
g-test: 4.236899264271143
confidence: 97.67000488131295 %
methods
var gtest = require('gtest');
gtest(a, b)
Return the liklihood ratio from the populations a
and b
.
Populations should have 2 or more of the keys: yes
, no
, total
.
install
With npm do:
npm install gtest
license
MIT/X11