Wrapper function to simulate data, fit tree, and evaluate outcomes
run_simu(
gps_spec = 1,
num_exposure_cats,
sample_size = 20000,
em_spec = 1,
heterogenous_intercept = FALSE,
beta = NULL,
outcome_sd = 1,
correct_splits = NULL,
true_trt_effect_func = NULL,
noise.var,
n_trials,
lambdas,
stopping.rule,
exploration.sample_covs = NULL,
inference.sample_covs = NULL,
val.sample_covs = NULL,
matched.exploration.sample = NULL,
matched.validation.sample = NULL,
matched.inference.sample = NULL,
true_modifiers = c(),
regenerate_covs = 0
)
gps matching setting
the number of categories to bin the exposure level into for stratification
sample size for data generation
effect modifier generation setting
adding heterogenous intercepts for particular settings
various levels of beta to test
specify outcome generation
correct splits of particular setting
function passed in to get true effect
noise variables
number of trials for simulation
various levels of lambda to test
stopping rule
description
description
description
description
description
description
the true modifiers for particular setting
whether to regenerate covariates each time we generate (UNUSED)
dataframe with one row for each tree in sequence and lambda value, representing the ability of the tree to explain the effect heterogeneity