Learn R Programming

tramME (version 0.0.1)

plot.tramME: Plotting method for tramME objects

Description

Plot the conditional distribution evaluated at a grid of possible response values and a set of covariate and random effects values on a specified scale.

Usage

# S3 method for tramME
plot(x, newdata = NULL, ranef = NULL, ...)

Arguments

x

A tramME object

newdata

an optional data frame of observations

ranef

Vector of random effects or the word "zero". See details.

...

Additional arguments, passed to plot.mlt.

Value

A numeric matrix of the predicted values invisibly

Details

When ranef is equal to "zero", a vector of zeros with the right size is substituted.

Examples

Run this code
# NOT RUN {
data("sleepstudy", package = "lme4")
fit <- BoxCoxME(Reaction ~ Days + (Days | Subject), data = sleepstudy)
plot(fit, K = 100, type = "density")
# }

Run the code above in your browser using DataLab