deviance.LMMsolve {LMMsolver} | R Documentation |
Deviance of an LMMsolve object
Description
Obtain the deviance of a model fitted using LMMsolve.
Usage
## S3 method for class 'LMMsolve'
deviance(object, includeConstant = TRUE, ...)
Arguments
object |
an object of class LMMsolve |
includeConstant |
Should the constant in the restricted log-likelihood
be included. Default is |
... |
some methods for this generic require additional arguments. None are used in this method. |
Value
The deviance of the fitted model.
Examples
## Fit model on john.alpha data from agridat package.
data(john.alpha, package = "agridat")
## Fit simple model with only fixed effects.
LMM1 <- LMMsolve(fixed = yield ~ rep + gen,
data = john.alpha)
## Obtain deviance.
logLik(LMM1)
## Obtain deviance. without constant.
logLik(LMM1, includeConstant = FALSE)
[Package LMMsolver version 1.0.7 Index]