Hello,
I am quite new to SEM and lavaan and from what I could see, this was not covered by previous posts on unidentified models.
I am running the following model that I got from a colleague using SPSS AMOS. The residual correlations in this model were chosen by correlating items which had high modification indices with other items within the same latent factor.
#Full model with covariances
#2nd order latent variable
l4 =~ i13+i14+i15+i16+i17
fit5<-cfa(model5, data = MyData, missing = "pairwise")
When I run the model, I get the following message:
In lav_model_vcov(lavmodel = lavmodel, lavsamplestats = lavsamplestats, :
lavaan WARNING: could not compute standard errors!
lavaan NOTE: this may be a symptom that the model is not identified.
I ran pieces of the model to isolate the problem. Without residual correlations, the model works. Then I tried adding residual correlations from each latent variable. The errors happen when I have every item under a given latent factor correlating to each other. In this code, the problems are with l1 and l5:
#residual correlations l1
#residual correlations for l5
I am wondering if this is not supposed to be done for SEM. And is there something different to how it is done in SPSS AMOS? In that program, I had all the error terms of these items correlated to each other, and the model works fine.
Thanks in advance!
Henri