Skip to contents

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.