poissonGoF: goodness-of-fit test for a Poisson distribution

Description Usage Arguments Details Value

Description

poissonGoF(classes, freq, perm = 1000)

Usage

1
poissonGoF(Classes, freq, perm = 1000)

Arguments

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.

Details

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.

Value

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.


helophilus/ColsTools documentation built on May 30, 2019, 4:03 p.m.