Learn R Programming

idem (version 2.2)

imPlotSurv: Plot survival curves

Description

Plot Kaplan-Meier survival curves

Usage

imPlotSurv(data.all, lst.var, cols = c("black", "blue"), fname = NULL, ...)

Arguments

data.all

Original dataset

lst.var
cols

Curve colors of the treatment and control arm

fname

File name of the result pdf file. If fname is null, result pdf file will not be generated

...

Options for pdf function

Examples

Run this code
# NOT RUN {
lst.var <- list(trt="TRT", surv="SURV", outcome=c("Y1","Y2"),
                y0=NULL, trt.label = c("UC+SBT", "SAT+SBT"),
                duration=365);
imPlotSurv(abc, lst.var);

# }

Run the code above in your browser using DataLab