plot.tramME {tramME}R Documentation

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 class '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.

Details

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

Value

A numeric matrix of the predicted values invisibly

Examples

data("sleepstudy", package = "lme4")
fit <- BoxCoxME(Reaction ~ Days + (Days | Subject), data = sleepstudy)
plot(fit, K = 100, type = "density")

[Package tramME version 0.0.3 Index]