statsmodels.stats.rates.PowerEquivalenceResult#

class statsmodels.stats.rates.PowerEquivalenceResult(*, power, std_alt, nobs_1, nobs_2, nobs_ratio, alpha, power_margins, std_null_low, std_null_upp)[source]#

Result of power_equivalence_poisson_2indep and power_equivalence_neginb_2indep.

Extends PowerResult with power_margins, std_null_low and std_null_upp.

Parameters:
powerfloat

Power of the equivalence test.

power_marginsndarray

Power contributions from the lower and upper equivalence margins.

std_null_lowfloat

Standard error of the test statistic under the null hypothesis at the lower equivalence margin.

std_null_uppfloat

Standard error of the test statistic under the null hypothesis at the upper equivalence margin.

std_altfloat

Standard error of the test statistic under the alternative hypothesis.

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
power
power_margins
std_alt
std_null_low
std_null_upp

See also

PowerResult

Notes

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

Methods

Properties