View source: R/fit_mechanisms.R
fit_nuisance_d | R Documentation |
This function estimates the conditional efficient influence function, setting the treatment to a* and conditioning on W, A, Z, R, and Y. It is used to adjust the full-data efficient influence function to account for two-phase sampling.
fit_nuisance_d(
train_data,
valid_data,
contrast,
learners,
b_out,
g_out,
h_out,
q_out,
r_out,
u_out,
v_out,
m_names,
w_names
)
train_data |
A |
valid_data |
A holdout data set, with columns exactly matching those
appearing in the preceding argument |
contrast |
A |
learners |
|
b_out |
Output from the internal function for fitting the outcome
regression |
g_out |
Output from the internal function for fitting the treatment
mechanism without conditioning on mediators |
h_out |
Output from the internal function for fitting the treatment
mechanism conditioning on the mediators |
q_out |
Output from the internal function for fitting the mechanism of
the intermediate confounder while conditioning on the mediators, i.e.,
|
r_out |
Output from the internal function for fitting the mechanism of
the intermediate confounder without conditioning on mediators, i.e.,
|
u_out |
Output from the internal function for fitting the pseudo-outcome
regression conditioning on mediator-outcome confounder , i.e.,
|
v_out |
Output from the internal function for fitting the pseudo-outcome
regression conditioning on treatment and baseline i.e.,
|
m_names |
A |
w_names |
A |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.