theta.md {MASS} | R Documentation |
Given the estimated mean vector, estimate theta
of the Negative Binomial
Distribution by equating the deviance to the residual degrees of freedom.
Analogue of a moment estimator.
theta.md(y, u, dfr, limit = 20, eps = .Machine$double.eps^0.25)
y |
Vector of observed values from the Negative Binomial. |
u |
Estimated mean vector. |
dfr |
Residual degrees of freedom (assuming theta known).
|
limit |
Limit on the number of iterations. |
eps |
Tolerance to determine convergence. |
The required estimate of theta
, as a scalar.
## Not run: theta <- theta.md(y, fitted(fm), dfr = 123)