Helper function to run standalone GRF analysis using grf.subg.harm.survival().
run_grf_analysis(
data,
confounders_name,
params,
dgm,
cox_formula = NULL,
cox_formula_adj = NULL,
analysis_label = "GRF",
verbose = FALSE,
debug = FALSE
)data.table with analysis estimates
Data frame with simulated trial data
Character vector of confounder names
List of GRF parameters (from grf_merged)
DGM object for computing true HRs
Cox formula for estimation
Adjusted Cox formula
Character label for this analysis
Print details
Print detailed debugging information