View source: R/utils_mediation.R
calculate_effects | R Documentation |
Calculate the actual effects
calculate_effects(w_11, w_00, w_10, w_01, y_outcome, sampw = NULL)
w_11 |
The Y(1, M(1)) weights |
w_00 |
The Y(0, M(0)) weights |
w_10 |
The Y(1, M(0)) weights |
w_01 |
The Y(0, M(1)) weights |
y_outcome |
The Y variable |
sampw |
Sampling weights, set to NULL by default. |
res |
The actual effects |
wgtmed
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.