Dear lavaan-group,
I'm trying to run a multigroup-CFA with effects-coding, e.g. for each construct constrain the factor loadings of the measured indicators to average to one (like suggested by Card & Little In Studying Aggression with Structural Equation Modeling ). But it ends up beeing singular. What has to be changed to make this work?
library(lavaan)
HS.model <- '
visual =~ c(l11,l11)*x1 + c(l21,l21)*x2 + c(l31,l31)*x3
textual =~ c(l12,l12)*x4 + c(l22,l22)*x5 + c(l32,l32)*x6
speed =~ c(l13,l13)*x4 + c(l23,l23)*x5 + c(l33,l33)*x6
l11 == 3 - l21 - l31
l12 == 3 - l22 - l32
l13 == 3 - l23 - l33'
fit <-
lavaan( model = HS.model,
data = HolzingerSwineford1939,
auto.var = TRUE,
auto.fix.first = FALSE,
group = "school" ,
group.equal = c("loadings")
)
Error in solve.default(E) :
… singular
thanks in advance,
kind regards,
René
sessionInfo()
R version 2.15.1 (2012-06-22)
Platform: i686-pc-linux-gnu (32-bit)
locale:
[1] LC_CTYPE=de_DE.UTF-8 LC_NUMERIC=C
[3] LC_TIME=de_DE.UTF-8 LC_COLLATE=de_DE.UTF-8
[5] LC_MONETARY=de_DE.UTF-8 LC_MESSAGES=de_DE.UTF-8
[7] LC_PAPER=C LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=de_DE.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] lavaan_0.4-14
loaded via a namespace (and not attached):
[1] stats4_2.15.1 tools_2.15.1
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to lav...@googlegroups.com.
Visit this group at https://groups.google.com/group/lavaan.