statsmodels.stats.contingency_tables.cochrans_q(x, return_object=True)
[source]
Cochran’s Q test for identical binomial proportions.
Parameters: |
|
---|---|
Returns: |
|
Cochran’s Q is a k-sample extension of the McNemar test. If there are only two groups, then Cochran’s Q test and the McNemar test are equivalent.
The procedure tests that the probability of success is the same for every group. The alternative hypothesis is that at least two groups have a different probability of success.
In Wikipedia terminology, rows are blocks and columns are treatments. The number of rows N, should be large for the chisquare distribution to be a good approximation.
The Null hypothesis of the test is that all treatments have the same effect.
http://en.wikipedia.org/wiki/Cochran_test SAS Manual for NPAR TESTS
© 2009–2012 Statsmodels Developers
© 2006–2008 Scipy Developers
© 2006 Jonathan E. Taylor
Licensed under the 3-clause BSD License.
http://www.statsmodels.org/stable/generated/statsmodels.stats.contingency_tables.cochrans_q.html