I’m working on a Confirmatory Factor Analysis (CFA) for my survey using R’s lavaan package. I’ve managed to get the correlation matrix for my factors, but I’m stuck on how to include the p-values for each correlation. I’ve tried using cov2cor(inspect(fit, what = "est")$psi), but it only gives me the matrix without significance levels.
This should give you a nice table with the factor correlations, standard errors, and p-values.
But I’m curious - what’s the end goal of your analysis? Are you looking to validate a specific theoretical model, or is this more exploratory? And how many factors are you working with in total?
It’d be cool to hear more about your research. Maybe there are some other approaches we could explore depending on what you’re trying to achieve!
I’ve encountered a similar issue in my research. One approach that worked for me was using the modindices() function in combination with parameterEstimates(). Here’s what I did:
This gives you a dataframe with correlations, standard errors, and p-values. It’s not the most elegant solution, but it gets the job done. Just be cautious when interpreting these p-values, especially with larger sample sizes, as they can be overly sensitive.
Have you considered using a Bayesian approach? It might offer a more nuanced interpretation of factor relationships, especially if you’re dealing with complex models or limited sample sizes.