Plot a random.effects.lme Object

Usage

plot(object, outer, omitFixed, level,  ...)

Arguments

object an object inheriting from class random.effects.lme, representing the estimated coefficients or estimated random effects for the lme object from which it was produced.
outer an optional one-sided formula specifying the grouping structure to be used for displaying the random effects (coefficients). Single factors (~g) or crossed factors (~g1*g2) are allowed. Default is NULL, in which case the row names of the random effects (coefficients) are used.
omitFixed an optional logical value indicating whether columns with values that are constant across groups should be omitted. Default is TRUE.
level an optional integer value giving the level of grouping to be used for object. Only used when object is a list with different components for each grouping level. Defaults to the highest or innermost level of grouping.
... optional arguments passed to the Trellis dotplot function.

Description

A Trellis dot-plot of the random effects is generated, with a different panel for each random effect (coefficient). Rows in the dot-plot are determined by the outer argument (if not missing) or by the row names of the random effects (coefficients). If a single factor is specified in outer, its levels determine the dot-plot rows (with possibly multiple dots per row); otherwise, if outer specifies a crossing of factors, the dot-plot rows are determined by all combinations of the levels of the individual factors in the formula. The Trellis function dotplot is used in this method function.

Value

a Trellis dot-plot of the estimated random-effects (coefficients).

Note

This function requires the trellis library.

Author(s)

Jose Pinheiro and Douglas Bates

See Also

random.effects.lme, lme, dotplot

Examples

library(lme)
data(Orthodont)
fm1 <- lme(distance ~ age, Orthodont, random = ~ age | Subject)
plot(ranef(fm1))
plot(ranef(fm1, aug = TRUE), outer = ~Sex)


[Package Contents]