Description Usage Arguments Details Value Author(s)
Finds the maximum likelihood estimates of the dispersion (k) and mean (mu) parameters of the negative binomial distribution.
1 | fitdistrNB(x)
|
x |
an integer vector |
This function lets mu = mean(x)
and uses optimize
to find
k
with log likelihood function defined simply as sum(dnbinom(x, k, mu))
A lsit
with components estiamte
giving the MLE and loglik
giving the value of the log likelihood function at the maximum. If
var(x) < mean(x)
then the MLE does not exist and the funciton returns
size = Inf
.
Andy Rominger <ajrominger@gmail.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.