stats.proportion.proportions_chisquare_allpairs()

statsmodels.stats.proportion.proportions_chisquare_allpairs

statsmodels.stats.proportion.proportions_chisquare_allpairs(count, nobs, multitest_method='hs') [source]

chisquare test of proportions for all pairs of k samples

Performs a chisquare test for proportions for all pairwise comparisons. The alternative is two-sided

Parameters:

count : integer or array_like

the number of successes in nobs trials.

nobs : integer

the number of trials or observations.

prop : float, optional

The probability of success under the null hypothesis, 0 <= prop <= 1. The default value is prop = 0.5

multitest_method : string

This chooses the method for the multiple testing p-value correction, that is used as default in the results. It can be any method that is available in multipletesting. The default is Holm-Sidak ‘hs’.

Returns:

result : AllPairsResults instance

The returned results instance has several statistics, such as p-values, attached, and additional methods for using a non-default multitest_method.

Notes

Yates continuity correction is not available.

© 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.proportion.proportions_chisquare_allpairs.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部