View source: R/modmedSummary.R
medSummary | R Documentation |
Summarize the mediation effects
medSummary(semfit, boot.ci.type = "perc", effects = c("indirect", "direct"))
semfit |
An object of class lavaan |
boot.ci.type |
Type of bootstrapping interval. Choices are c("norm","basic","perc",bca.simple","all") |
effects |
Names of effects to be summarized |
A data.frame and an object of class medSummary
library(lavaan) labels=list(X="cond",M="pmi",Y="reaction") model=tripleEquation(labels=labels) semfit=sem(model=model,data=pmi, se="boot", bootstrap=100) medSummary(semfit) medSummary(semfit,boot.ci.type="all")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.