# Correlation matrix and Wald Chi-square test in confirmatory factor analysis using lavaan package

I saw a paper comparing correlations between the latent factors using Wald's chi-square test of parameter constrains. Anyone knows how to get the Wald's chi-square test result with correlation matrix, chi-square and p-values for the latent factors with 'lavaan' package? I was able to use inspect(fit,'cor.lv') to get the correlation matrix for the latent variables but now sure where to find the complete test results including chi-square and p-values. Thank you.

• What do you want to test? – Jeremy Miles Feb 27 '17 at 18:45
• @JeremyMiles Test the correlations between the latent factors and report p-values, chi-square. Thanks. – Joe Feb 28 '17 at 13:07
• rdocumentation.org/packages/lavaan/versions/0.5-22/topics/… – Jeremy Miles Feb 28 '17 at 14:33
• @JeremyMiles Thank you. That is testing the coefficients of the individual variables. How to test the correlations between the factors such as visual, textual and speed? – Joe Feb 28 '17 at 17:40
• @JeremyMiles Thank you! I used the code to test the correlations between these three factors (visual ~~ r1 * speed+ r2*textual'). Does it look right? ' HS.model <- ' visual =~ x1 + x2 + x3 textual =~ x4 + x5 + x6 speed =~ x7 + x8 + x9 visual ~~ r1 * speed+ r2*textual' fit <- cfa(HS.model, data = HolzingerSwineford1939) summary(fit, fit.measures = TRUE) con = 'r1-r2==0' lavTestWald(fit, constraints = con) inspect(fit,'cor.lv')  – Joe Feb 28 '17 at 20:52

"visual ~~ r1 * speed"

lavTestWald(fit, constraints = "r1 == 0")