Description Usage Arguments Examples
This function runs a simple mediation model to calculate
the indirect effect, which will be used for bootstrapping
the confidence interval of the indirect effect. This function
is used in conjunction with the boot
function and is formatted to
work as a bootstrapped effect.
1 | indirectmed(formula2, formula3, x, med.var, df, random)
|
formula2 |
The formula for mediation for the a path, usually
|
formula3 |
The formula for mediation for the b path, usually
|
x |
The column name for x in the data frame. |
med.var |
The column name for m in the data frame. |
df |
The dataframe where the columns from the formula can be found. |
random |
This variable is used to denote the data frame will be
randomize by row, as part of the |
1 | indirectmed("disp ~ mpg", "cyl ~ mpg + disp", mtcars)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.