obs.test: The observed and expected counts.

obsR Documentation

The observed and expected counts.

Description

The observed and expected counts under the null hypothesis: Poisson, binomial and negative binomial.

Usage

obs(x, dist = "pois")

Arguments

x

a numeric vector of values.

dist

names distributions: pois (deflaut), binom or nbinom

Value

An object containing the following components:

ob

observed counts

ex

expected counts

Author(s)

Krzysztof Trajkowski

References

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.

See Also

chisq.test

Examples

set.seed(2305)
g <- rpois(120,3)
obs(g)

krzysiektr/CressieReadTest documentation built on April 3, 2024, 11:01 p.m.