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:
- statistic
float Test statistic, asymptotically normal distributed N(0, 1).
- pvalue
float p-value based on the normal distribution.
- compare{“diff”, “ratio”, “odds-ratio”}
Which comparison of the two proportions the test is for.
- method
str Method used to compute the test, always
"score".- variance
float Estimated variance of the test statistic under the null hypothesis.
- alternative
str The alternative hypothesis used for the test.
- prop1_null
float Constrained estimate of the first proportion under the null hypothesis.
- prop2_null
float Constrained estimate of the second proportion under the null hypothesis.
- statistic
- 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