I'm trying to fit a CFA in a multilevel data situation where the construct of interest at both the within and between levels. However, I'm having convergence issues when I assess the latent construct at both the within and between levels.
When assessing the construct at the between level (and adding a x1 and x2 association at the within level to avoid an error message), I have no issues:
m1 <- '
level: 1
x1 ~ x2
level: 2
fb =~ item1 + item2 + item3 + item4
'
fit1 <-cfa(m1, data=data1,cluster = "group")
summary(fit1, fit.measures=TRUE)
Similarly, there is no trouble when assessing the construct at the within level:
m2 <- '
level: 1
fw =~ item1 + item2 + item3 + item4
level: 2
x1 ~ x2
'
fit2 <- cfa(m2, data=data1,cluster = "group")
summary(fit2, fit.measures=TRUE)
However, I cannot get convergence when assessing the construct at both levels:
m3 <- '
level: 1
fw =~ item1 + item2 + item3 + item4
level: 2
fb =~ item1 + item2 + item3 + item4
'
fit3 <- cfa(m3, data=data1,cluster = "group")
summary(fit3, fit.measures=TRUE)
Does anyone have any ideas for why I might be encountering this issue? I've attached the data in case it's helpful for addressing my query.