frontdr_np | R Documentation |
Estimate the effect using Front-door method.
frontdr_np(data, formula, exposure.name, surrogate.name)
frontdoor.r(data, formula, exposure.name, surrogate.name)
data |
Dataframe of raw data. |
formula |
Formula representing the model. |
exposure.name |
Name of exposure variable. |
surrogate.name |
Name of the surrogate variable. |
Estimate the effect using Front-door method. The exposure variable is used as a confounder in the front-door method.
Dataframe in a useable format for rsample::bootstraps
.
Section 8.3
# 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.