get_deviance | R Documentation |
Returns model deviance (see stats::deviance()
).
get_deviance(x, ...)
## Default S3 method:
get_deviance(x, verbose = TRUE, ...)
x |
A model. |
... |
Not used. |
verbose |
Toggle warnings and messages. |
For GLMMs of class glmerMod
, glmmTMB
or MixMod
,
the absolute unconditional deviance is returned (see 'Details' in
?lme4::merMod-class
), i.e. minus twice the log-likelihood. To get
the relative conditional deviance (relative to a saturated model,
conditioned on the conditional modes of random effects), use deviance()
.
The value returned get_deviance()
usually equals the deviance-value
from the summary()
.
The model deviance.
data(mtcars)
x <- lm(mpg ~ cyl, data = mtcars)
get_deviance(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.