ggResidMer.plot: Residuals plot for merMod objects

Description Usage Arguments Author(s) See Also Examples

View source: R/ggResidMer.plot.R

Description

Plot the standardized residuals

Usage

1
ggResidMer.plot(model, id = 5, type = "pearson")

Arguments

model

a model of class merMod or glmerMod

id

an optional numeric value, or one-sided formula. If given as a value, it is used as a significance level for a two-sided outlier test for the standardized, or normalized residuals. Observations with absolute standardized (normalized) residuals greater than the 1-value/2 quantile of the standard normal distribution are identified in the plot using idLabels. If given as a one-sided formula, its right hand side must evaluate to a logical, integer, or character vector which is used to identify observations in the plot. If missing, no observations are identified.

vars

either a character vector of predictor column names or a numeric vector of column indices.

Author(s)

Jason Grafmiller

See Also

plot.merMod.

Examples

1
2
3
4
5
6
7
8
9
data(brown_genitives)

## plot the percentages of s- vs. of-genitives by
## genre, possessor animacy, and final sibilancy
ggPredictor.plot(brown_genitives, "Type",
	c("Genre", "PossrAnimacyBin", "FinalSibilant"))

## same thing using column indices:
ggPredictor.plot(brown_genitives, "Type", c(3, 19, 10))

jasongraf1/JGmermod documentation built on May 24, 2019, 9:54 p.m.