plot.IDEMDATA | R Documentation |
Generate different types of plots for class IDEMDATA
objects.
## S3 method for class 'IDEMDATA'
plot(
x,
opt = c("survivor", "missing", "KM"),
cols = c("black", "blue"),
fname = NULL,
...
)
x |
A class |
opt |
Types of the plot
|
cols |
Curve colors of the treatment and control arm for survival plot or colors of the observed and missing data for missingness plot. |
fname |
File name of the result pdf file. If |
... |
Extra arguments for |
imData
rst.data <- imData(abc, trt="TRT", surv="SURV", outcome=c("Y1","Y2"),
y0=NULL, endfml="Y2",
trt.label = c("UC+SBT", "SAT+SBT"),
cov=c("AGE"), duration=365, bounds=c(0,100));
plot(rst.data, opt = "survivor");
plot(rst.data, opt = "missing", cols = c("blue", "gray"));
plot(rst.data, opt = "KM");
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.