statsmodels.stats.rates.PoissonTest2indepResult#
- class statsmodels.stats.rates.PoissonTest2indepResult(statistic, pvalue, distribution, compare, method, alternative, rates, ratio, diff, value, rates_cmle)[source]#
Result of
test_poisson_2indep.- Parameters:
- statistic
float Test statistic.
- pvalue
float p-value of the test.
- distribution
str Name of the reference distribution used for pvalue.
- compare{“diff”, “ratio”}
Whether the test is for the difference or ratio of the two rates.
- method
str Method used to compute the test statistic and p-value.
- alternative
str The alternative hypothesis used for the test.
- rates
tuple The two observed rates,
(rate1, rate2).- ratio
float The observed rate ratio,
rate1 / rate2.- diff
float The observed rate difference,
rate1 - rate2.- value
float Value of the ratio or difference under the null hypothesis.
- rates_cmle
tupleorNone Constrained maximum likelihood estimates of the two rates under the null hypothesis,
(rate1_cmle, rate2_cmle). Only set forcompare="diff"andmethod="score", otherwise None.
- statistic
- Attributes:
- alternative
- compare
- diff
- distribution
- method
- pvalue
- rates
- rates_cmle
- ratio
- statistic
- value
Notes
Unpacks as
statistic, pvalue = result. Other values are only accessible using attributes.Methods
Properties