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:
statisticfloat

Test statistic.

pvaluefloat

p-value of the test.

distributionstr

Name of the reference distribution used for pvalue.

compare{“diff”, “ratio”}

Whether the test is for the difference or ratio of the two rates.

methodstr

Method used to compute the test statistic and p-value.

alternativestr

The alternative hypothesis used for the test.

ratestuple

The two observed rates, (rate1, rate2).

ratiofloat

The observed rate ratio, rate1 / rate2.

difffloat

The observed rate difference, rate1 - rate2.

valuefloat

Value of the ratio or difference under the null hypothesis.

rates_cmletuple or None

Constrained maximum likelihood estimates of the two rates under the null hypothesis, (rate1_cmle, rate2_cmle). Only set for compare="diff" and method="score", otherwise None.

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