mediationBK | R Documentation |
Perform mediation analysis by Baron and Kenny Method
mediationBK(
X = NULL,
M = NULL,
Y = NULL,
labels = list(),
data,
silent = TRUE,
indirect.test = TRUE,
sig = 0.05
)
X |
name of independent variable |
M |
name of mediator variable |
Y |
name of dependent variable |
labels |
An optional list of variable names |
data |
A data.frame |
silent |
Logical. Whether or not show summary of regression tests |
indirect.test |
Logical. Whether or not show results of bda.mediation.test |
sig |
significant level. default value is 0.05 |
labels=list(X="cond",M="pmi",Y="reaction")
result=mediationBK(labels=labels,data=pmi,silent=FALSE)
result
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.