View source: R/medltmle_CreateMedMSMInputs.R
CreateMedMSMInputs | R Documentation |
Create Mediation MSM Inputs for ltmle.
CreateMedMSMInputs(data, abar, abar.prime, rule, gform)
data |
Dataframe containing the data in a wide format. |
abar |
Intervention. |
abar.prime |
Control for the exposure. |
rule |
Specify rule for the intervention. |
gform |
g form for intervention (if there is a censoring variable, include C as well). |
Returns regimes for abar and abar.prime in proper format, working MSM and MSM weights, summary measures, gform and final Y nodes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.