logLik.glm {base} | R Documentation |
Returns the log-likelihood value of the generalized linear
model represented by object
evaluated at the estimated
coefficients.
logLik(object, ...)
object |
an object inheriting from class "glm" . |
... |
further arguments to be passed to or from methods. |
the log-likelihood of the linear model represented by
object
evaluated at the estimated coefficients.
##-- 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))