Build a parametric intensity simulator using sampled coefficients
Source:R/parametric_bootstrap.R
make_parametric_intensity_simulator.RdSupports coxph objects: sampled coefficients are used to compute linear predictor
while baseline hazard is taken from survival::basehaz().
Usage
make_parametric_intensity_simulator(
intensity_model,
sampled_coef,
covariate_mapping = NULL
)Arguments
- intensity_model
A fitted model (e.g.,
coxph) or afunction(t, prev_outcome, visit_num).- sampled_coef
Named numeric vector of sampled coefficients (from
get_bootstrap_coeffs()).- covariate_mapping
Optional named character vector mapping expected covariate names to model variable names.