inspect.lmer {asuR}R Documentation

Plots to Inspect fitted Models

Description

This functions can be used to validate some assumptions of (generalized) linear mixed effects models fitted using the lmer function from package 'lme4'.

Usage

## S3 method for class 'lmer':
inspect(mymodel, which = c("select", "sequence", "all"), id = c("all", "none"), ...)

Arguments

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

Details

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

Value

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.

Note

identification of points is not implemented yet

Author(s)

thomas.fabbro@unibas.ch

See Also

plot

Examples

##  data(wellplate)
##  model <- lmer(int ~ trt + (1|row) + (1|col), data=wellplate)
##  inspect(model)

[Package asuR version 0.08-24 Index]