Learn R Programming

prodlim (version 1.2.1)

plot.SimSurv: Plot simulated survival data

Description

Survival data are simulated with SimSurv. Then this function applies the LinksKaplan-Meier estimator -- possibly in strata defined by covariates -- and plots the result.

Usage

## S3 method for class 'SimSurv':
plot(x, ...)

Arguments

x
Data.frame as obtained with SimSurv
...
passed to plot.prodlim

See Also

SimSurv, plot.prodlim

Examples

Run this code
sdat=SimSurv(100)
plot(sdat)

Run the code above in your browser using DataLab