Learn R Programming

asbio (version 1.5-5)

ML.k: Maximum likelihood algorithm for determining the binomial dispersal coefficient

Description

The function uses the maximum likelihood method described by Bliss and R. A. Fisher (1953) to determine maximum likelihood estimates for the binomial parameters m (the mean) and k (a parameter describing aggregation/dispersion).

Usage

ML.k(f, x, res = 1e-06)

Arguments

f

A vector of frequencies for objects in x (must be integers).

x

A vector of counts, must be sequential integers.

res

Resolution for the ML estimator.

Value

Returns a list with two items

k

The negative binomial dispersion parameter, k

m

The negative binomial distribution mean, m

References

Bliss, C. I., and R. A. Fisher (1953) Fitting the negative binomial distribution to biological data. Biometrics 9: 176-200.

See Also

dnbinom

Examples

Run this code
# NOT RUN {
mites <- seq(0, 8)
freq <- c(70, 38, 17, 10, 9, 3, 2, 1, 0)
ML.k(freq, mites) 
# }

Run the code above in your browser using DataLab