plot_km_pi: Plot Kaplan-Meier curves with prediction intervals from...

View source: R/calc_km_pi.R

plot_km_piR Documentation

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.


survParamSim documentation built on June 3, 2022, 9:06 a.m.