Description Usage Arguments Value
This function will perform simple mediation, using the 'lavaan' package. It uses bias-corrected bootstrap resampling for the confidence intervals.
1 |
iv |
The name of the independent variable, as a character string. |
dv |
The name of the dependent variable, as a character string. |
med |
The name of the mediator, as a character string. |
data |
The data frame with the relevant variables. |
samples |
The number of bootstrap resamples. Defaults to 5000. |
Coefficients, standard errors, z-values, p-values, and confidence intervals for all estimated parameters. The indirect effect will not return standard errors, z-values, or p-values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.