Hello,
I am a beginner at using lavaan package and I would like to ask you it is possible to fit a model with variables that have different number of replications.
According to the tutorial, the package uses the listwise deleition by default. In my case, some variables have 10 replicates and others 3 replicates, and consequently the final total number of observations in the model is reduced and only based on the rows that do not have any missing values.
When I run the model in R with my whole dataframe, I get an error that says "Could not compute standard errors! The information matrix could not be inverted. This may be a symptom that the model is not identified.", and I guess this is due to the missing values problem.
I have tried to use the mean values for each variable, but then the total number of observations is too low and it is close to the number of free parameters.
Is there any possibility to run a model with all the variables despite of having different number of replications between them?
Thank you very much in advance,
Raquel