#step1-cfa analysis
cfa.model <-
'cog =~ FAC1+FAC2
facil =~ FAC3+FAC4
trust =~ T1+T2
rule =~ Q2_8_1+Q2_8_2+Q2_8_3
social =~ sol1+sol2'
cfa.out <- cfa(cfa.model, data1)
summary(cfa.out, fit.measures=T, standardized=T)
library(semPlot)
semPaths(cfa.out)
semPaths(cfa.out, style="lisrel")
#step2-SR
sr.model <-
'cog =~ FAC1+FAC2
facil =~ FAC3+FAC4
trust =~ T1+T2
rule =~ Q2_8_1+Q2_8_2+Q2_8_3
socail =~ sol1+sol2
trust ~ cog+facil
rule ~ cog+facil
social ~ cog+facil+rule+trust
cog ~~ facil'
sr.out <- sem(sr.model, data1)
summary(sr.out, fit.measures=T, standardized=T)
summary(sr.out, fit.measures=T, standardized=T, rsquare=T)
On Sep 3, 2022, at 7:09 PM, Kyung Mi Lee <wnh...@gmail.com> wrote:
Hello, I am new to using the lavaan package and got an error message,
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/lavaan/d10f7c02-a8a9-47ca-b457-307bf44804c9n%40googlegroups.com.
--