View source: R/LMMsolve-class.R
deviance.LMMsolve | R Documentation |
Obtain the deviance of a model fitted using LMMsolve.
## S3 method for class 'LMMsolve'
deviance(object, relative = TRUE, includeConstant = TRUE, ...)
object |
an object of class LMMsolve |
relative |
Deviance relative conditional or absolute unconditional
(-2*logLik(object))? Default |
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. |
The deviance of the fitted model.
## 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.
deviance(LMM1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.