plot.coxtv {surtvep} | R Documentation |
plotting results from a fitted coxtv
object
Description
This function creates a plot of the time-varying coefficients from a fitted coxtv
model.
Usage
## S3 method for class 'coxtv'
plot(
x,
parm,
CI = TRUE,
level = 0.95,
exponentiate = FALSE,
xlab,
ylab,
xlim,
ylim,
allinone = FALSE,
title,
linetype,
color,
fill,
time,
...
)
Arguments
x |
model obtained from |
parm |
covariate names fitted in the model to be plotted. If |
CI |
if |
level |
the level of confidence intervals. The default value is |
exponentiate |
if |
xlab |
the title for the x axis. |
ylab |
the title for the y axis. |
xlim |
the limits for the x axis. |
ylim |
the limits for the y axis. |
allinone |
if |
title |
the title for the plot. |
linetype |
the line type for the plot. |
color |
the aesthetics parameter for the plot. |
fill |
the aesthetics parameter for the plot. |
time |
the time points for which the time-varying coefficients to be plotted. The default value is the unique observed event times in the dataset fitting the time-varying effects model. |
... |
other graphical parameters to plot |
Value
A plot is produced, and nothing is returned.
Examples
data(ExampleData)
z <- ExampleData$z
time <- ExampleData$time
event <- ExampleData$event
fit <- coxtv(event = event, z = z, time = time)
plot(fit)