statsmodels.stats.proportion.samplesize_confint_proportion(proportion, half_length, alpha=0.05, method='normal') [source]
find sample size to get desired confidence interval length
| Parameters: |
|
|---|---|
| Returns: |
n – sample size to get the desired half length of the confidence interval |
| Return type: |
float |
this is mainly to store the formula. possible application: number of replications in bootstrap samples
© 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.samplesize_confint_proportion.html