se.alipsa.groovy.stats.contingency.CochranMantelHaenszel.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of matrix-stats Show documentation
Show all versions of matrix-stats Show documentation
Statistical hypothesis tests based on Matrix data.
The newest version!
package se.alipsa.groovy.stats.contingency
/**
* the Cochran–Mantel–Haenszel test (CMH) is a test used in the analysis of stratified or matched categorical data.
* It allows an investigator to test the association between a binary predictor or treatment and a binary outcome
* such as case or control status while taking into account the stratification.
* Unlike the McNemar test, which can only handle pairs, the CMH test handles arbitrary strata size.
* It is named after William G. Cochran, Nathan Mantel and William Haenszel.
*/
class CochranMantelHaenszel {
}