Learn R Programming

processR (version 0.2.7)

medSummary: Summarize the mediation effects

Description

Summarize the mediation effects

Usage

medSummary(semfit, boot.ci.type = "perc", effects = c("indirect", "direct"))

Value

A data.frame and an object of class medSummary

Arguments

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

Examples

Run this code
library(lavaan)
labels=list(X="cond",M="pmi",Y="reaction")
model=tripleEquation(labels=labels)
# \donttest{
semfit=sem(model=model,data=pmi, se="boot", bootstrap=100)
medSummary(semfit)
medSummary(semfit,boot.ci.type="all")
# }

Run the code above in your browser using DataLab