mediation_np | R Documentation |
Estimate non-parametric mediation effect.
mediation_np(data, formula, exposure.name, mediator.name, confound.names)
mediation.r(data, formula, exposure.name, mediator.name, confound.names)
nonparamediation.r(data, formula, exposure.name, mediator.name, confound.names)
data |
Dataframe of raw data. |
formula |
Formula representing the model. |
exposure.name |
Name of exposure variable. |
mediator.name |
Name of mediator variable. |
confound.names |
Names of the confound variables. |
Estimate non-parametric mediation effect using the tidyverse
way
of coding.
Dataframe in a useable format for rsample::bootstraps
.
section 12.3
mediation_calc
# 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.