logLik.manylm {mvabund} | R Documentation |
Calculate the log likelihood of a multivariate linear model.
## S3 method for class 'manylm': logLik(object, REML = FALSE, ...)
object |
a manylm object from which a log-likelihood value
should be extracted. |
... |
some methods for this function require additional arguments. |
REML |
an optional logical value. If TRUE the restricted
log-likelihood is returned, else, if FALSE , the
log-likelihood is returned. Defaults to 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.
Returns an object, say r
, of class logLik
which is a
number with attributes, attr(r, "df")
(degrees of
freedom) giving the number of (estimated) parameters in the model.
data(spider) spiddat <- mvabund(spider$abund) X <- spider$x lm.spider <- manylm(spiddat~X) logLik(lm.spider)