statsmodels.stats.proportion.proportions_chisquare(count, nobs, value=None)
[source]
test for proportions based on chisquare test
Parameters: |
|
---|---|
Returns: |
|
Recent version of scipy.stats have a chisquare test for independence in contingency tables.
This function provides a similar interface to chisquare tests as prop.test
in R, however without the option for Yates continuity correction.
count can be the count for the number of events for a single proportion, or the counts for several independent proportions. If value is given, then all proportions are jointly tested against this value. If value is not given and count and nobs are not scalar, then the null hypothesis is that all samples have the same proportion.
© 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.html