statsmodels.stats.rates.PowerDiffResult#
- class statsmodels.stats.rates.PowerDiffResult(*, power, std_alt, nobs_1, nobs_2, nobs_ratio, alpha, rates_alt, std_null)[source]#
Result of
power_poisson_diff_2indep.Extends
PowerResultwith rates_alt and std_null.- Parameters:
- power
float Power of the test.
- rates_alt
tuple The two rates under the alternative hypothesis,
(rate1, rate2).- std_null
float Standard error of the test statistic under the null hypothesis (without
sqrt(nobs_1)).- std_alt
float Standard error of the test statistic under the alternative hypothesis (without
sqrt(nobs_1)).- nobs_1
floatorint Number of observations in sample 1.
- nobs_2
floatorint Number of observations in sample 2.
- nobs_ratio
float Sample size ratio,
nobs_2 = nobs_ratio * nobs_1.- alpha
float Significance level used for the power computation.
- power
- Attributes:
- alpha
- nobs_1
- nobs_2
- nobs_ratio
- power
- rates_alt
- std_alt
- std_null
See also
Notes
Unpacks as a length-1 sequence,
(power,) = result. Other values are only accessible using attributes.Methods
Properties