statsmodels.stats.proportion.ScoreTestProportionsResult#

class statsmodels.stats.proportion.ScoreTestProportionsResult(statistic, pvalue, compare, method, variance, alternative, prop1_null, prop2_null)[source]#

Result of score_test_proportions_2indep.

Parameters:
statisticfloat

Test statistic, asymptotically normal distributed N(0, 1).

pvaluefloat

p-value based on the normal distribution.

compare{“diff”, “ratio”, “odds-ratio”}

Which comparison of the two proportions the test is for.

methodstr

Method used to compute the test, always "score".

variancefloat

Estimated variance of the test statistic under the null hypothesis.

alternativestr

The alternative hypothesis used for the test.

prop1_nullfloat

Constrained estimate of the first proportion under the null hypothesis.

prop2_nullfloat

Constrained estimate of the second proportion under the null hypothesis.

Attributes:
alternative
compare
method
prop1_null
prop2_null
pvalue
statistic
variance

Notes

Unpacks as statistic, pvalue = result. Other values are only accessible using attributes.

Methods

Properties