Helper function to run ForestSearch and extract estimates. Aligned with forestsearch() parameters including use_twostage.
run_forestsearch_analysis(
data,
confounders_name,
params,
dgm,
cox_formula = NULL,
cox_formula_adj = NULL,
analysis_label = "FS",
verbose = FALSE
)data.table with analysis estimates
Data frame with simulated trial data
Character vector of confounder names
List of ForestSearch parameters
DGM object for computing true HRs
Cox formula for estimation
Adjusted Cox formula
Character label for this analysis
Print details