statsmodels.stats.rates.PowerRatioResult#

class statsmodels.stats.rates.PowerRatioResult(*, power, std_alt, nobs_1, nobs_2, nobs_ratio, alpha, p_pooled, std_null)[source]#

Result of power_poisson_ratio_2indep.

Extends PowerResult with p_pooled and std_null.

Parameters:
powerfloat

Power of the test.

p_pooledfloat or None

Not currently computed, reserved for future use.

std_nullfloat

Standard error of the test statistic under the null hypothesis (without sqrt(nobs_1)).

std_altfloat

Standard error of the test statistic under the alternative hypothesis (without sqrt(nobs_1)).

nobs_1float or int

Number of observations in sample 1.

nobs_2float or int

Number of observations in sample 2.

nobs_ratiofloat

Sample size ratio, nobs_2 = nobs_ratio * nobs_1.

alphafloat

Significance level used for the power computation.

Attributes:
alpha
nobs_1
nobs_2
nobs_ratio
p_pooled
power
std_alt
std_null

See also

PowerResult

Notes

Unpacks as a length-1 sequence, (power,) = result. Other values are only accessible using attributes.

Methods

Properties