modSummary | R Documentation |
Make moderation effect summary
modSummary(semfit, mod = NULL, values = NULL, boot.ci.type = "bca.simple")
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") |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.