I'm running a CFA model in lavaan and I had a warning saying "some estimated ov variances are negative". I have no idea how to deal with it. Could you help me with it? Thank you.
> attitude <- 'att =~att1+att2+att3'
> fit <- cfa (attitude, data=CFAm)
Warning message:
In lav_object_post_check(lavobject) :
lavaan WARNING: some estimated ov variances are negative
> summary(fit,fit.measures=TRUE,modindices = TRUE)
lavaan (0.5-23.1026) converged normally after 45 iterations
Number of observations 281
Estimator ML
Minimum Function Test Statistic 0.000
Degrees of freedom 0
Minimum Function Value 0.0000000000000
Model test baseline model:
Minimum Function Test Statistic 488.993
Degrees of freedom 3
P-value 0.000
User model versus baseline model:
Comparative Fit Index (CFI) 1.000
Tucker-Lewis Index (TLI) 1.000
Loglikelihood and Information Criteria:
Loglikelihood user model (H0) -1076.551
Loglikelihood unrestricted model (H1) -1076.551
Number of free parameters 6
Akaike (AIC) 2165.103
Bayesian (BIC) 2186.933
Sample-size adjusted Bayesian (BIC) 2167.907
Root Mean Square Error of Approximation:
RMSEA 0.000
90 Percent Confidence Interval 0.000 0.000
P-value RMSEA <= 0.05 NA
Standardized Root Mean Square Residual:
SRMR 0.000
Parameter Estimates:
Information Expected
Standard Errors Standard
Latent Variables:
Estimate Std.Err z-value P(>|z|)
att =~
att1 1.000
att2 15.204 5.846 2.601 0.009
att3 13.477 4.530 2.975 0.003
Variances:
Estimate Std.Err z-value P(>|z|)
.att1 0.367 0.031 11.832 0.000
.att2 -0.100 0.425 -0.234 0.815
.att3 0.549 0.337 1.629 0.103
att 0.011 0.008 1.414 0.157
Modification Indices:
[1] lhs op rhs mi epc
sepc.lv sepc.all sepc.nox
<0 rows> (or 0-length row.names)