Estimate the Exposure Mechanism via Generalized Propensity Score
Source:R/fit_mechanisms.R
est_g_exp.RdEstimate the Exposure Mechanism via Generalized Propensity Score
Arguments
- A
A
numericvector of observed exposure values.- W
A
numericmatrix of observed baseline covariate values.- delta
A
numericvalue identifying a shift in the observed value of the exposure under which observations are to be evaluated.- samp_weights
A
numericvector of observation-level sampling weights, as produced by the internal procedure to estimate the two-phase sampling mechanismest_samp.- fit_type
A
characterspecifying whether to use Super Learner (from sl3) or the Highly Adaptive Lasso (from hal9001) to estimate the conditional exposure density.- sl_learners_density
Object containing a set of instantiated learners from sl3, to be used in fitting an ensemble model.
- haldensify_args
A
listof argument to be directly passed tohaldensifywhenfit_typeis set to"hal". Note that this invokes the Highly Adaptive Lasso instead of Super Learner and is thus only feasible for relatively small data sets.