survParamSim (version 0.1.0)

plot_km_pi: Plot Kaplan-Meier curves with prediction intervals from parametric bootstrap simulation

Description

Need to think about how to apply this for subgroups

Usage

plot_km_pi(km.pi, show.obs = TRUE, trunc.sim.censor = TRUE)

Arguments

km.pi

an output from calc_km_pi function.

show.obs

A logical specifying whether to show observed K-M curve on the plot. This will have no effect if `calc.obs` was set to `FALSE` in calc_km_pi.

trunc.sim.censor

A logical specifying whether to truncate the simulated curve at the last time of `censor.dur`` specified in surv_param_sim.