Aligned with new DGM output structure including AHR metrics. Correctly handles grf.subg.harm.survival() output structure:
sg.harm.id: subgroup definition string
data: data frame with treat.recommend column (0 = harm, 1 = complement)
extract_grf_estimates(
df,
grf_est,
dgm,
cox_formula = NULL,
cox_formula_adj = NULL,
analysis = "GRF",
frac_tau = 1,
verbose = FALSE,
debug = FALSE
)data.table with extracted estimates
Simulated data frame
GRF estimation result from grf.subg.harm.survival()
DGM object
Cox formula
Adjusted Cox formula
Analysis label
Fraction of tau used
Print extraction details
Print detailed debugging information about GRF result structure