Obtain the Restricted Maximum Log-Likelihood of a model fitted using LMMsolve.
Usage
# S3 method for class 'LMMsolve'
logLik(object, includeConstant = TRUE, ...)Examples
## Fit model on oats data
data(oats.data)
## Fit simple model with only fixed effects.
LMM1 <- LMMsolve(fixed = yield ~ rep + gen,
data = oats.data)
## Obtain log-likelihood.
logLik(LMM1)
#> [1] -34.95557
## Obtain log-likelihood without constant.
logLik(LMM1, includeConstant = FALSE)
#> [1] 7.315605
