I had a quick question regarding Multigroup Comparison in Lavaan. Conceptually speaking, if I wanted to take a fully constrained model (using group.equal = c("intercepts", "regressions")) and free specific paths, would I need to place constraints on the covariances of the model as well? This is what I am working with so far:
practicemodel4<-
'
#Regressions
w3DISCRIM ~ c("a1","a1")*w2DISCRIM
w3PSSM ~ c("b1","b1")*w2PSSM + a*w2DISCRIM
w3DEPRESS ~ c("c1","c1")*w2DEPRESS + c("d1","d1")*w2PSSM
w4DISCRIM ~ c("e1","e1")*w3DISCRIM
w4PSSM ~ c("f1","f1")*w3PSSM + c*w3DISCRIM
w4DEPRESS ~ c("g1","g1")*w3DEPRESS + b*w3PSSM
w5DISCRIM ~ c("h1","h1")*w4DISCRIM
w5PSSM ~ c("i1","i1")*w4PSSM + c("j1","j1")*w4DISCRIM
w5DEPRESS ~ c("k1","k1")*w4DEPRESS + d*w4PSSM
#Direct Effects
w4DEPRESS ~ e*w2DISCRIM
w5DEPRESS ~ f*w3DISCRIM
direct := e + f
#Mediations
med1 := a*b
med2 := c*d
mediated := med1 + med2
#Covariances
w2DISCRIM ~~ w2PSSM + w2DEPRESS
w2PSSM ~~ w2DEPRESS
w3DISCRIM ~~ w3PSSM + w3DEPRESS
w3PSSM ~~ w3DEPRESS
w4DISCRIM ~~ w4PSSM + w4DEPRESS
w4PSSM ~~ w4DEPRESS
w5DISCRIM ~~ w5PSSM + w5DEPRESS
w5PSSM ~~ w5DEPRESS
#Total Effect
total1 := med1 + e
total2 := med2 + f'
modelcomparison2 <- lavaan::sem(practicemodel4, data=seasons.edited, missing = 'fiml', fixed.x = FALSE, group = "groupcomp")
summary(modelcomparison2,fit.measures = TRUE)
I wanted to make sure I am doing the constraining and freeing paths correctly. Any help is appreciated!