obs | R Documentation |
The observed and expected counts under the null hypothesis: Poisson, binomial and negative binomial.
obs(x, dist = "pois")
x |
a numeric vector of values. |
dist |
names distributions: pois (deflaut), binom or nbinom |
An object containing the following components:
observed counts
expected counts
Krzysztof Trajkowski
Noel Cressie and Timothy R. C. Read (1984). Multinomial Goodness-of-Fit Test. Journal of the Royal Statistical Society. Series B (Methodological), Vol. 46, No. 3 (1984), 440-464.
chisq.test
set.seed(2305)
g <- rpois(120,3)
obs(g)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.