statsmodels.stats.proportion.PowerProportionsResult#

class statsmodels.stats.proportion.PowerProportionsResult(power, p_pooled, std_null, std_alt, nobs1, nobs2, nobs_ratio, alpha)[source]#

Result of power_proportions_2indep.

Parameters:
powerfloat

Power of the test.

p_pooledfloat

Pooled proportion, used for std_null.

std_nullfloat

Standard error of the difference under the null hypothesis (without sqrt(nobs1)).

std_altfloat

Standard error of the difference under the alternative hypothesis (without sqrt(nobs1)).

nobs1float or int

Number of observations in sample 1.

nobs2float or int

Number of observations in sample 2.

nobs_ratiofloat

Sample size ratio, nobs2 = nobs_ratio * nobs1.

alphafloat

Significance level used for the power computation.

Methods

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Methods

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Properties

alpha

Alias for field number 7

nobs1

Alias for field number 4

nobs2

Alias for field number 5

nobs_ratio

Alias for field number 6

p_pooled

Alias for field number 1

power

Alias for field number 0

std_alt

Alias for field number 3

std_null

Alias for field number 2