modSummary: Make moderation effect summary

View source: R/modSummary.R

modSummaryR Documentation

Make moderation effect summary

Description

Make moderation effect summary

Usage

modSummary(semfit, mod = NULL, values = NULL, boot.ci.type = "bca.simple")

Arguments

semfit

An object of class lavaan

mod

name of moderator variable

values

optional values of moderator

boot.ci.type

Type of bootstrapping interval. Choices are c("norm","basic","perc",bca.simple")

Examples

require(lavaan)
labels=list(X="frame",W="skeptic",M="justify",Y="donate")
moderator=list(name='skeptic',site=list(c("a")))
model=tripleEquation(labels=labels,moderator=moderator,data=disaster,rangemode=2)
cat(model)
## Not run: 
semfit=sem(model=model,data=disaster,se="boot",bootstrap=100)
modSummary(semfit)
modSummaryTable(semfit)
labels=list(X="dysfunc",M="negtone",Y="perform",W="negexp")
moderator=list(name="negexp",site=list("b"))
model=tripleEquation(labels=labels,moderator=moderator,data=teams,rangemode=2)
cat(model)
semfit=sem(model,data=teams,se="boot",bootstrap=100)
modmedSummary(semfit)
modSummaryTable(semfit)

## End(Not run)

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