View source: R/mediation_calc.R
mediation_calc | R Documentation |
Calculate the mediation variables.
mediation_calc(NDE, NIE, CDE0, CDE1)
NDE |
Number. Natural direct effect. |
NIE |
Number. Natural indirect effect. |
CDE0 |
Number. Controlled direct effect setting M=0. |
CDE1 |
Number. Controlled direct effect setting M=1. |
Calculate the mediation variables and put them in a dataframe that can be used with bootstrapping.
Dataframe in a useable format for rsample::bootstraps
.
mediation
mediation_calc(NDE = -0.03552486, NIE = -0.11595150,
CDE0 = 0.04240090, CDE1 = 0.04705889)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.