\Header{logLik.glm}{Extract Log-Likelihood from an glm Object}
\keyword{models}{logLik.glm}
\begin{Description}\relax
Returns the log-likelihood value of the generalized linear
model represented by \code{object} evaluated at the estimated
coefficients.\end{Description}
\begin{Usage}
\begin{verbatim}
## S3 method for class 'glm':
logLik(object, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{object}] an object inheriting from class \code{"glm"}.
\item[\code{...}] further arguments to be passed to or from methods.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
As a \code{\Link{family}} does not have to specify how to calculate
the log-likelihood, this is based on the family's function to compute
the AIC.  For \code{\Link{gaussian}}, \code{\Link{Gamma}} and
\code{\Link{inverse.gaussian}}
families it assumed that the dispersion of the GLM is estimated and
has been included in the AIC, and for all other families it is assumed
that the dispersion is known.

Not that this procedure is not completely accurate for the gamma and
inverse gaussian families, as the estimate of dispersion used is not
the MLE.\end{Details}
\begin{Value}
the log-likelihood of the linear model represented by
\code{object} evaluated at the estimated coefficients.\end{Value}
\begin{SeeAlso}\relax
\code{\Link{glm}}, \code{\Link{logLik.lm}}\end{SeeAlso}

