View source: R/est_comb_exposure.R
est_comb_exposure | R Documentation |
Estimate the expected outcome given exposure to the combination of marginal exposures. This is different compared to the cumulative sum; whereas with the cumulative sum, the exposure is the additive effect of each marginal rule found in the fold, here each marginal rule is included in a Super Learner as a binary vector and therefore this can pick up possible nonlinearity between the combination of binary exposures.
est_comb_exposure(
at,
av,
y,
w,
marg_rule_train,
marg_rule_valid,
no_marg_rules,
aw_stack,
family,
parallel_cv,
seed
)
at |
Training data |
av |
Validation data |
y |
Outcome variable |
w |
Vector of characters denoting covariates |
marg_rule_train |
Data frame of binary vectors for marginal rules identified in the training fold |
marg_rule_valid |
Data frame of binary vectors for marginal rules identified in the validation fold |
no_marg_rules |
TRUE/FALSE if no marginal rules were found across all |
aw_stack |
Super Learner library for fitting Q (outcome mechanism) and g (treatment mechanism) |
family |
Outcome type family |
parallel_cv |
TRUE/FALSE if parallel CV is used |
seed |
Seed number folds |
A list of the combination marginal results within a fold including:
data
: A data frame with the marginal rules evaluated as
binary vectors, baseline covariates and predicted outcomes given
ensemble fitting.
learner
: The Super Learner model fit to the data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.