k_ml: Preemption parameter estimation by maximum likelihood.

Description Usage Arguments Value Note Author(s) References See Also Examples

View source: R/k_ml.R

Description

Calculates the maximum likelihood estimator for the geometric series.

Usage

1
k_ml(xs, closed = FALSE, ll = 0.001, ul = 0.999)

Arguments

xs

A vector of ordered counts (form large to small)

closed

If closed=TRUE a closed form approximation to the ML estimator will be calculated; otherwise the exact ML estimator is calculated iteratively.

ll

Lower limit for the root searching algorithm

ul

Upper limit for the root searching algorithm

Value

a real value

Note

counts should be ordered from large to small.

Author(s)

Jan Graffelman (jan.graffelman@upc.edu)

References

Graffelman, J. (2021) Maximum likelihood estimation of the geometric niche preemption model.

See Also

k_ls,k_hetang,k_may

Examples

1
2
3
data("Ganeshaiah")
x <- Ganeshaiah[,2]
k_ml(x)

MLpreemption documentation built on Feb. 11, 2021, 5:07 p.m.