
Extract Survival Outcome Components and Predictors
Source:R/joint_model.R
extract_surv_components.RdHelper utility that molds a survival formula into clean components, through the
same hardhat formula blueprint used by coxnet
(one-hot dummy encoding, no intercept), supporting both 2-parameter
Surv(time, status) and 3-parameter start/stop
Surv(tstart, tstop, status) counting process structures.
Value
A list with elements surv_obj, time, start, status,
type, predictors (a numeric tibble, one-hot encoded), pred_names,
raw_predictors (the original predictor columns, before encoding, which is what
the models' predict() methods and the explainers take), formula,
data (the molded, `subject_id`-free data frame), and
blueprint (the hardhat blueprint used, for forge).