Description Usage Arguments Value
Target the outcome regression
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | target_Qbar(
Y,
A,
M1,
M2,
a,
a_star,
all_mediator_values,
Qbar_n,
gn,
Q_M_n,
which_effects = c("direct", "indirectM1", "indirectM2"),
bound_pred = FALSE,
epsilon_threshold = 5,
...
)
|
Y |
A vector of continuous or binary outcomes. |
A |
A vector of binary treatment assignment (assumed to be equal to 0 or 1). |
M1 |
A |
M2 |
A |
a |
The label for the treatment. The effects estimates returned pertain
to estimation of interventional effects of |
a_star |
The label for the treatment. The effects estimates returned pertain
to estimation of interventional effects of |
all_mediator_values |
Grid of all combinations of M1 and M2 |
Qbar_n |
Power users may wish to pass in their own properly formatted list of the
outcome regression so that
nuisance parameters can be fitted outside of |
gn |
Power users may wish to pass in their own properly formatted list of the
propensity score so that
nuisance parameters can be fitted outside of |
Q_M_n |
Power users may wish to pass in their own properly formatted list of the
mediator distributions so that nuisance parameters can be fitted outside
of |
which_effects |
Which effects to include in the targeted of the outcome regression |
bound_pred |
Should predictions be bounded? |
epsilon_threshold |
To avoid extreme values of fluctuation parameters (indicating likely numerical instability), we truncate the value this parameter can take. |
A list containing all outcome regression evaluations needed for downstream calculations.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.