logLik.manylm {mvabund} | R Documentation |
Calculate the Log Likelihood
Description
Calculate the log likelihood of a multivariate linear model.
Usage
## S3 method for class 'manylm'
logLik(object, REML = FALSE, ...)
Arguments
object |
a |
... |
some methods for this function require additional arguments. |
REML |
an optional logical value. If |
Details
It is assumed that the scale has been estimated (by maximum likelihood or REML), and all the constants in the log-likelihood are included.
Value
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.
Examples
data(spider)
spiddat <- mvabund(spider$abund)
lm.spider <- manylm(spiddat~., data=spider$x)
logLik(lm.spider)
[Package mvabund version 4.2.1 Index]