Description Usage Arguments Details Value
poissonGoF(classes, freq, perm = 1000)
1 | poissonGoF(Classes, freq, perm = 1000)
|
freq |
are the frequencies of the classes in an object of the same length as 'classes'. |
classes |
is an object giving the consecutive count classes, e.g., 0:5 |
is |
the number of randomizations to use, default is 1000. |
The actual data are used to produce a Poisson distributed data set with the same mean and number of values. This is compared to the actual data (a goodness of fit test) by calculating a value of chi-squared. Randomized data sets are then produced by sampling in the same proportions as dictated by the Poisson distribution. A chi-squared value is calculated for the goodness-of-fit of each of these 'randomized' distributions to the Poisson distribution, and the proportion of these at least as big as the reference chi-squared value is the probability.
p.value
is the probability dervived from the randomizations
lambda
is the mean of the original data
Chisq
is the calculated value of chi-squared from the actual data
expected.values
are the expected values based upon a Poisson
distribution with the mean of the data for the given number of observations.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.