Skip to contents

Plots a shaded polygon representing the confidence interval for a Kaplan-Meier survival curve.

Usage

plot_km_confint_polygon(x, surv, se, conf_level, col)

Arguments

x

Numeric vector of time points.

surv

Numeric vector of survival probabilities.

se

Numeric vector of standard errors of survival probabilities.

conf_level

Numeric; confidence level for interval (default 0.95).

col

Color for the polygon.

Value

Invisibly returns NULL. Used for plotting side effects.