plot.SimSurv {prodlim}R Documentation

Plot simulated survival data

Description

Survival data are simulated with SimSurv. Then this function applies the Kaplan-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

Author(s)

Thomas A. Gerds tag@biostat.ku.dk

See Also

SimSurv, plot.prodlim

Examples

sdat=SimSurv(100)
plot(sdat)


[Package prodlim version 1.0.5 Index]