em_itnb: itnb parameter optimisation

View source: R/em-itnb.R

em_itnbR Documentation

itnb parameter optimisation

Description

Parameter optimisation for data generated by a r.v. following an itnb distribution using the ENM algorithm.

Usage

em_itnb(x, i, t, control = list())

## S3 method for class 'numeric'
em_itnb(x, i, t, control = list())

Arguments

x

Vector: Observed counts.

i

Numeric: The inflation point.

t

Numeric: The truncation point.

control

List: A control object, see em_itnb_control for details.

Value

An object of class itnb-object.

Examples

n = 2000
i = 94
t = 93
mu = 100
theta = 10
p = 0.2

x <- ritnb(n = n, mu = mu, theta = theta, p = p, i = i, t = t)
em_itnb(x = x, i = i, t = t, control = em_itnb_control(trace = 100))

svilsen/itnb documentation built on Sept. 7, 2024, 1:30 a.m.