statsmodels.stats.proportion.proportions_chisquare_pairscontrol(count, nobs, value=None, multitest_method='hs', alternative='two-sided')[source]

Chisquare test of proportions for pairs of k samples compared to control

Performs a chisquare test for proportions for pairwise comparisons with a control (Dunnet’s test). The control is assumed to be the first element of count and nobs. The alternative is two-sided, larger or smaller.

count{int, array_like}

the number of successes in nobs trials.


the number of trials or observations.


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’.

alternativestr in [‘two-sided’, ‘smaller’, ‘larger’]

alternative hypothesis, which can be two-sided or either one of the one-sided tests.

resultAllPairsResults instance

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


Yates continuity correction is not available.

value and alternative options are not yet implemented.

Last update: Jun 01, 2024