Learn R Programming

lme4 (version 1.1-7)

plots.thpr: Mixed-Effects Profile Plots (Regular / Density / Pairs)

Description

Xyplot, Densityplot, and Pairs plot methods for a mixed-effects model profile.

xyplot() draws zeta diagrams, also visualizing confidence intervals and their asymmetry.

densityplot() draws the profile densities.

splom() draws profile pairs plots. Contours are for the marginal two-dimensional regions (i.e. using df = 2).

Usage

## S3 method for class 'thpr':
xyplot(x, data = NULL,
       levels = sqrt(qchisq(pmax.int(0, pmin.int(1, conf)), 1)),
       conf = c(50, 80, 90, 95, 99)/100,
       absVal = FALSE, which=1:nptot, ...)

## S3 method for class 'thpr': densityplot(x, data, ...)

## S3 method for class 'thpr': splom(x, data, levels = sqrt(qchisq(pmax.int(0, pmin.int(1, conf)), 2)), conf = c(50, 80, 90, 95, 99)/100, which=1:nptot, ...)

Arguments

x
a mixed-effects profile, i.e., of class "thpr", typically resulting from profile(fm) where fm is a fitted model from lmer (or
data
unused - only for compatibility with generic.
levels
the contour levels to be shown; usually derived from conf.
conf
numeric vector of confidence levels to be shown as contours.
absVal
logical indicating if abs(.)olute values should be plotted, often preferred for confidence interval visualization.
which
integer or character vector indicating which parameters to profile: default is all parameters (see profile-methods for details).
...
further arguments passed to xyplot, densityplot, or splom from package lattice, respecti

Value

  • [object Object],[object Object],[object Object]

See Also

profile, notably for an example.

Examples

Run this code
## see   example("profile.merMod")

Run the code above in your browser using DataLab