powered by
Calculate the log likelihood of a multivariate linear model.
# S3 method for manylm logLik(object, REML = FALSE, ...)
Returns an object, say r, of class logLik which is a number with attributes, attr(r, "df") (degrees of
r
logLik
attr(r, "df")
freedom) giving the number of (estimated) parameters in the model.
a manylm object from which a log-likelihood value should be extracted.
manylm
some methods for this function require additional arguments.
an optional logical value. If TRUE the restricted log-likelihood is returned, else, if FALSE, the log-likelihood is returned. Defaults to FALSE.
TRUE
FALSE
It is assumed that the scale has been estimated (by maximum likelihood or REML), and all the constants in the log-likelihood are included.
data(spider) spiddat <- mvabund(spider$abund) lm.spider <- manylm(spiddat~., data=spider$x) logLik(lm.spider)
Run the code above in your browser using DataLab