Learn R Programming

pammtools (version 0.8.1)

get_sim_ci: Calculate simulation based confidence intervals

Description

These helpers draw the simulated hazard trajectories once for the whole (possibly grouped) newdata via sim_hazard -- so one set of draws is shared across groups -- and then summarise them into pointwise quantile intervals. Cumulative quantities are accumulated within each group of newdata.

Usage

get_sim_ci(newdata, object, alpha = 0.05, nsim = 100L, ...)

Arguments