Hello everyone,I have an issue that is already raised by some posts but I cannot seem to find the answer that fits my situation.Namely, in running measurement invariance analysis across gender (male(small group) VS. female (large group)) I came across the following warning:covariance matrix of latent variables is not positive definite in group 2; use
lavInspect(fit, "cov.lv") to investigate.Now, the lavInspect command yielded the following results:$`2` (male group - the one with the problem)
Future Prsn_C Strctr Harmny Goals Future
1.000
0.861 1.000
0.662 0.588 1.000
0.706 0.866 0.672 1.000
0.880 0.975 0.547 0.743 1.000
1.000
0.882 1.000
0.675 0.868 1.000
0.850 0.913 0.731 1.000
0.882 0.902 0.617 0.682 1.000As you can see, some latent correlations are pretty high but not as high as 1 (or more). Also, there are no Heywood cases in the output.Aa I understood Professor Jorgensen's comments on previous similarposts - this may not even be a problem. But how does one explain (or fix) this?Kind regards,Nikola
--
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+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/lavaan/28c17768-a40b-4927-8ab2-e3fb6ad84585n%40googlegroups.com.
Dear Professor,Thank you for your response.
I also believe this high correlation might be the problem and yes n is 80 participants in this group so the CI is probably encompassing 1 (I am not sure how to check this).
One of my little shiny apps, specifically https://shiny.psyctc.org/apps/CIcorrelation/ will give you that for the Gaussian population model and a says that the 95% CI around an observed .975 with n = 80 is from .96 to .98. That looks clear of 1.00. I'm not an expert in measurement invariance to know if that helps you here, I think others are answering that as ever on this list.
I couldn't resist the opportunity to give my shiny apps a plug here. And, shamelessly, while I'm here, people interested in the overlaps of psychology, mental health and the psychotherapies might find the apps useful and might also find useful things in my online glossary, 326 entries and climbing mostly about quantitative things in that area, and in my Rblog, 50 entries and climbing, which expands on some topics in the glossary. All free to use and content in Creative Commons open licence.
Also while I'm here: huge thanks to all who regularly contribute to this list: I have found it hugely useful and educative and the spirit of the contributions impressively generous and supportive.
Chris
To view this discussion visit https://groups.google.com/d/msgid/lavaan/4c1f1cd7-d593-42ae-b385-6a0e79bead7fn%40googlegroups.com.

[oops, I saw the reply to me before the reply to the list. To
keep things open, this is what I sent to Nikola.
On 18/11/2024 18:15, Nikola Ćirović wrote:
Dear Chris,I do hope these things I'm putting out there come in useful to people.Thank you for this app. It will be useful for me in many respects!
That sounds to fit with the 95% CI my app is giving. Perhaps I will add output of the SE to the app.However, I am now confused as to what is the problem with the warning I got (also, the SE of this correlation is .043).
I would be very thankful if anyone could recommend me some piece of methods literature about this problem.
I'm sorry, I'm really not an expert on this, there are real experts on the list (of course!) I hope you get some more help there but I suspect that the consensus would be that it's not a fatal error but a warning. However, really I shouldn't even be trying to give you a view given my lack of specific expertise!
Where I am a bit more expert is in simulating these sorts of things. You could try simulating sets of samples of the same size as you had drawing on a population model based on a pooled correlation matrix from your real samples and then doing the analysis for each of the simulations. With the power of modern hardware and the efficiency of lavaan I suspect that this is entirely possible even if might need to be left running overnight. You could then look at the distributions of the parameters for each fit and of the fit indices and you could collect up the prevalence of errors and warnings.
However, I hope you get more expert answers from the list.
Very best wishes,
Chris
To view this discussion visit https://groups.google.com/d/msgid/lavaan/8964ac6e-f46c-4e05-bb08-b72106d39a5fn%40googlegroups.com.
1.000
0.882 1.000
0.675 0.868 1.000
0.850 0.913 0.731 1.000
0.882 0.902 0.617 0.682 1.000