\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}
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{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}
\begin{Examples}
\begin{ExampleCode}

##-- Continuing the  glm(.) example:
Eq <- function(x,y) all.equal(x,y, tol = 1e-12)
stopifnot(Eq(AIC(anorex.1), anorex.1$aic),
          Eq(AIC(g1), g1$aic),
          Eq(AIC(g2), g2$aic))
\end{ExampleCode}
\end{Examples}

