\Header{theta.ml}{Estimate theta of the Negative Binomial by Maximum Likelihood}
\keyword{models}{theta.ml}
\begin{Description}\relax
Given the estimated mean vector, estimate \code{theta} of the Negative Binomial
Distribution.\end{Description}
\begin{Usage}
\begin{verbatim}
theta.ml(y, mu, n, limit = 10, eps = .Machine$double.eps^0.25, trace = FALSE)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{y}] Vector of observed values from the Negative Binomial.

\item[\code{mu}] Estimated mean vector.

\item[\code{n}] Number of data points (defaults to length of \code{y})

\item[\code{limit}] Limit on the number of iterations.

\item[\code{eps}] Tolerance to determine convergence.

\item[\code{trace}] logical: should iteration progress be printed?

\end{ldescription}
\end{Arguments}
\begin{Value}
The required estimate of \code{theta}, as a scalar.\end{Value}
\begin{SeeAlso}\relax
\code{\Link{glm.nb}}, \code{\Link{theta.md}}, \code{\Link{theta.mm}}\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
## Don't run: theta <- theta.ml(y, fitted(fm), dfr = 123)
\end{ExampleCode}
\end{Examples}

