time_msm | R Documentation |
Estimate using marginal structural models.
time_msm(data, outcome.name, exposure.names, confound.names)
msm.r(data, outcome.name, exposure.names, confound.names)
snmm.r(data, outcome.name, exposure.names, confound.names)
data |
Dataframe. |
outcome.name |
Name of outcome variable. |
exposure.names |
Name of exposure variables. There must be 2 of them. |
confound.names |
Names of the confound variables. |
Estimate using marginal structural models with he tidyverse way of coding.
Dataframe in a useable format for rsample::bootstraps
.
Section 13.1
# An example can be found in the location identified in the
# source section above at the github site
# https://github.com/FrankLef/FundamentalsCausalInference.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.