medSummary: Summarize the mediation effects

View source: R/modmedSummary.R

medSummaryR Documentation

Summarize the mediation effects

Description

Summarize the mediation effects

Usage

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

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

Value

A data.frame and an object of class medSummary

Examples

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")


processR documentation built on Jan. 23, 2023, 5:44 p.m.