View source: R/est_mix_nuisance_params.R
est_mix_nuisance_params | R Documentation |
For each mixture mixture interaction found, create a g estimator for the probability of being exposed to the rule thresholds, and a Q estimator for the outcome E(Y| A = a_mix, W). Get estimates of g and Q using the validation data and calculate the clever covariate used in the TMLE fluctuation step.
est_mix_nuisance_params(
at,
av,
w,
a,
y,
aw_stack,
family,
rules,
parallel_cv,
seed,
h_aw_trunc_lvl
)
at |
Training data |
av |
Validation data |
w |
Vector of characters denoting covariates |
y |
The outcome variable |
aw_stack |
Super Learner library for fitting Q (outcome mechanism) and g (treatment mechanism) |
family |
Binomial or continuous |
rules |
Dataframe of rules found during the PRE fitting process |
parallel_cv |
TRUE/FALSE if cv parallelization is used |
seed |
Seed number |
h_aw_trunc_lvl |
Truncation level of the clever covariate (induces more bias to reduce variance) |
no_mix_rules |
TRUE/FALSE indicator for if no mixture rules were found |
A list of dataframes where the nuisance parameters are added to the raw data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.