chisq.pois | R Documentation |
This function performs a chi-square goodness of fit test for a Poisson distribution.
chisq.pois(x, f, lambda = NULL)
x |
The observed values |
f |
The observed counts. |
lambda |
Poisson parameter. |
If lambda
is not specified, then it is estimated from the data.
If there are categories with expected counts less than 5 or less than 1 a warning
is shown.
It returns a table with the contribution to the chi-square statistic for each category, the chi-square statistic, the degrees of freedom, and the p-value.
Raúl Eyzaguirre.
x <- 0:9
f <- c(6, 16, 48, 77, 72, 72, 46, 39, 15, 9)
chisq.pois(x, f)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.