I do not know how to create the moderation item, for empower x histo, and empower x sys.
Empowerment - empower is a second order reflective construct, with the dimension comp, mean, aut and imp.
Empowerment interacts with history tracking (histo) to influence browse. History tracking is a first order reflection latent construct.
Empowerment also interacts with system facilitating social interactions (sys) to influence browse. System facilitating social interactions is a first order reflection latent construct.
library('lavaan')
dat1 <- read.csv("C:/Users/Sarah/Documents/community.csv")
mySEMModel2 <- 'comp =~ comp1 + comp2 + comp3
mean =~ mean1 + mean2 + mean3
aut =~ aut1 + aut2 + aut3
imp =~ imp1 + imp2 + imp4
empower =~ comp + mean + aut + imp
browse =~ browse1 + browse2 + browse3
knowc =~ knowc1 + knowc2 + knowc3 + knowc4
sosp =~ sosp2 + sosp3 + sosp4 + sosp5
histo =~ histo1 + histo2 + histo3
sys =~ sys1 + sys2 + sys3
# regressions
#not sure how to create the interaction term
browse ~ empower + histo + sys + interaction term
fit <- sem(mySEMModel2, data = dat1)
summary(fit, standardized = TRUE, fit.measures = TRUE)
--
You received this message because you are subscribed to the Google Groups "lavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lavaan+un...@googlegroups.com.
To post to this group, send email to lav...@googlegroups.com.
Visit this group at https://groups.google.com/group/lavaan.
For more options, visit https://groups.google.com/d/optout.