Learn R Programming

Wcompo (version 1.0)

plot.CompoML: Plot the predicted mean function under the proportional means model

Description

Plot the predicted mean function under the proportional means model for a new observation.

Usage

# S3 method for CompoML
plot(
  x,
  z = NULL,
  xlab = "Time",
  ylab = "Mean function",
  lty = 1,
  frame.plot = FALSE,
  add = FALSE,
  ...
)

Arguments

x

An object returned by CompoML.

z

Covariate vector for the new observation. If NULL, the baseline mean function will be plotted.

xlab

A label for the x axis.

ylab

A label for the y axis.

lty

Line type for the plot.

frame.plot

Boolean argument indicating whether to add a rectangular frame to the plot.

add

If TRUE, the curve will be overlaid on an existing plot; otherwise, a separate plot will be constructed.

...

Other arguments that can be passed to the underlying plot method.

Value

No return value, called for side effects.

See Also

CompoML, print.CompoML.

Examples

Run this code
# NOT RUN {
## see example for CompoML
# }

Run the code above in your browser using DataLab