Dear lavaan user, I received warning message below while I was analyzing second-order factor model with categorical variables.
-----
Warning messages:
1: In lav_model_vcov(lavmodel = lavmodel, lavsamplestats = lavsamplestats, :
lavaan WARNING: could not compute standard errors!
2: In lav_model_test(lavmodel = lavmodel, lavpartable = lavpartable, :
lavaan WARNING: could not compute scaled test statistic
-----
model<- 'F1=~v1+v2+v3
F2 =~v4+v7+v8
F3=~v5+v6+v9
F2~~F3
F3~~F1
F4=~F1+F2+F3'
fit<- sem(model,
std.lv=TRUE,data=dataset1,ordered=c("v1","v2","v3","v4","v5","v6","v7","v8","v9"))
------
#Restrictions on Covariance are needed because unless I restrict these latent variables, the model itself has not converged.
------
lavaan (0.5-16) converged normally after 16 iterations
Used Total
Number of observations 4162 4533
Estimator DWLS Robust
Minimum Function Test Statistic 586.423 NA
Degrees of freedom 22 22
P-value (Chi-square) 0.000 NA
Scaling correction factor NA
Shift parameter
for simple second-order correction (Mplus variant)
Model test baseline model:
Minimum Function Test Statistic 19068.057 14040.988
Degrees of freedom 36 36
P-value 0.000 0.000
User model versus baseline model:
Comparative Fit Index (CFI) 0.970 NA
Tucker-Lewis Index (TLI) 0.951 NA
Root Mean Square Error of Approximation:
RMSEA 0.079 NA
90 Percent Confidence Interval 0.073 0.084 NA NA
P-value RMSEA <= 0.05 0.000 NA
Weighted Root Mean Square Residual:
WRMR 3.051 3.051
Parameter estimates:
Information Expected
Standard Errors Robust.sem
Estimate Std.err Z-value P(>|z|)
Latent variables:
F1 =~
v1 0.665
v2 0.608
v3 0.751
F2 =~
v4 0.714
v7 0.714
v8 0.669
F3 =~
v5 0.674
v6 0.349
v9 0.663
F4 =~
F1 0.270
F2 0.247
F3 0.720
Covariances:
F2 ~~
F3 0.333
F1 ~~
F3 0.377
Intercepts:
F1 0.000
F2 0.000
F3 0.000
F4 0.000