poissonDispersionTest

Computes the full Poisson dispersion test from the sample moments: the index of dispersion (Var/Mean), the test statistic T = (n−1)·Var/Mean, its degrees of freedom (n−1), and the three p-values (via poissonDispersionPValues). A zero mean yields NaN for the index and T.

Parameters

mean

the sample average

variance

the sample variance

sampleSize

the number of observations