residualDiagnostics.merMod {multilevelTools} | R Documentation |
residualDiagnostics methods for merMod objects
Description
residualDiagnostics methods for merMod objects
Usage
## S3 method for class 'merMod'
residualDiagnostics(
object,
ev.perc = 0.001,
robust = FALSE,
distr = "normal",
standardized = TRUE,
...
)
Arguments
object |
An object with class |
ev.perc |
The extreme value percentile to use. Defaults to .001. |
robust |
A logical value, whether to use robust estimates or not.
Defaults to |
distr |
A character string specifying the assumed distribution.
Currently “normal”, but may expand in the future if
|
standardized |
A logical value whether to use standardized
residual values or not. Defaults to |
... |
Additional arguments. Not currently used. |
Value
A logical (is.residualDiagnostics
) or
a residualDiagnostics object (list) for
as.residualDiagnostics
and residualDiagnostics
.
Examples
library(JWileymisc)
sleep[1,1] <- NA
m <- lme4::lmer(extra ~ group + (1 | ID), data = sleep)
residualDiagnostics(m)$Residuals
# gm1 <- lme4::glmer(cbind(incidence, size - incidence) ~ period + (1 | herd),
# data = lme4::cbpp, family = binomial)
# residualDiagnostics(gm1) ## should be an error
rm(m, sleep)
[Package multilevelTools version 0.1.1 Index]