Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

medSummary

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

Implementation of the 'PROCESS' Macro

v0.2.6
GPL-2
Authors
Keon-Woong Moon [aut, cre], Sokyoung Hong [ctb]
Initial release
2021-1-5

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.