inspect.lmer {asuR} | R Documentation |
This functions can be used to validate some assumptions of (generalized)
linear mixed effects models fitted using the lmer
function from
package 'lme4'.
## S3 method for class 'lmer': inspect(mymodel, which = c("select", "sequence", "all"), id = c("all", "none"), ...)
mymodel |
an object of class lmer , usually the result of a
call to the function lmer |
which |
a character string; do you want to select the plots from
a list of all possible diagnostics plots available or do you want
all of them, one after the other |
id |
a character string or numeric value; in which panel should it be possible to interactively identify values |
... |
further arguments |
For lmer available:
description | short & | long function names |
Normal quantile quantile plot of residuals by levles of categorical fixed effects | nrp | NormalQuantiles.Residuals.CategoricalFixedEffects |
Box- or dotplot of residuals by levels, for each random factor | rgp | residuals.by.groups |
Residuals vs. fitted values for all categorical fixed effects | rfp | Residuals.Fitted.CategoricalFixedEffects |
Normal quantile quantile plot of random effects, for each factor | nep | NormalQuantiles.RandomEffectsQuantiles |
A list with identified values (row indices), one named slot (short name) for each inspection function and an additional slot (called all) with all values that were selected at lest in one plot.
identification of points is not implemented yet
plot
## data(wellplate) ## model <- lmer(int ~ trt + (1|row) + (1|col), data=wellplate) ## inspect(model)