em_itnb | R Documentation |
Parameter optimisation for data generated by a r.v. following an itnb distribution using the ENM algorithm.
em_itnb(x, i, t, control = list())
## S3 method for class 'numeric'
em_itnb(x, i, t, control = list())
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. |
An object of class itnb-object.
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.