Dear lavaan community,
I want to test the factorial validity of an existing questionnaire in a clinical sample. My problem is that I get a warning message that I don’t understand. I have checked many times that I’m using the correct data frames etc. and still can’t find the problem. I have a clinical sample with 127 complete observations, the questionnaire has 17 items answered on a 3-point Likert-type scale. Below is the detailed information.
I used the following model and the cfa-funtion to fit it:
eight.model <- ' # measurement model
physical =~ pcsisr801 +
pcsisr802 +
pcsisr803 +
pcsisr804 +
pcsisr805 +
pcsisr806 +
pcsisr807 +
pcsisr808
emotional =~ pcsisr809 +
pcsisr810 +
pcsisr811
cognitive =~ pcsisr812 +
pcsisr813 +
pcsisr814 +
pcsisr815
fatigue =~ pcsisr816 +
pcsisr817
'
fit.pcsi8.o <- cfa(eight.model, data = pcsi8.2, ordered = items.pcsi8, std.lv = T)
Here is the warning message:
Warning message:
In lav_object_post_check(object) :
lavaan WARNING: covariance matrix of latent variables
is not positive definite;
use lavInspect(fit, "cov.lv") to investigate.
If I check with lavInspect(fit.pcsi8.o, "cov.lv"), I get this output:
physcl emotnl cogntv fatigu
physical 1.000
emotional 0.824 1.000
cognitive 0.999 0.784 1.000
fatigue 0.900 0.607 0.844 1.000
Unfortunately, I don't understand what the problem is. All standardized covariances (i.e., correlations) are smaller than 1 and positive.
Even when I check with summary(fit.pcsi8.o) I can’t find any problematic covariances, neither in the latent variables nor in any other parameter. Here is the output:
lavaan 0.6.14 ended normally after 28 iterations
Estimator DWLS
Optimization method NLMINB
Number of model parameters 57
Number of observations 127
Model Test User Model:
Standard Scaled
Test Statistic 66.916 116.764
Degrees of freedom 113 113
P-value (Chi-square) 1.000 0.385
Scaling correction factor 1.002
Shift parameter 49.983
simple second-order correction
Parameter Estimates:
Standard errors Robust.sem
Information Expected
Information saturated (h1) model Unstructured
Latent Variables:
Estimate Std.Err z-value P(>|z|)
physical =~
pcsisr801 0.522 0.082 6.385 0.000
pcsisr802 0.758 0.082 9.258 0.000
pcsisr803 0.756 0.081 9.302 0.000
pcsisr804 0.751 0.063 11.901 0.000
pcsisr805 0.763 0.071 10.676 0.000
pcsisr806 0.774 0.061 12.779 0.000
pcsisr807 0.605 0.085 7.078 0.000
pcsisr808 0.719 0.061 11.702 0.000
emotional =~
pcsisr809 0.760 0.068 11.193 0.000
pcsisr810 0.659 0.088 7.468 0.000
pcsisr811 0.882 0.051 17.233 0.000
cognitive =~
pcsisr812 0.812 0.055 14.703 0.000
pcsisr813 0.621 0.084 7.358 0.000
pcsisr814 0.685 0.079 8.643 0.000
pcsisr815 0.904 0.048 18.808 0.000
fatigue =~
pcsisr816 0.838 0.057 14.640 0.000
pcsisr817 0.912 0.063 14.563 0.000
Covariances:
Estimate Std.Err z-value P(>|z|)
physical ~~
emotional 0.824 0.076 10.906 0.000
cognitive 0.999 0.039 25.754 0.000
fatigue 0.900 0.052 17.167 0.000
emotional ~~
cognitive 0.784 0.084 9.290 0.000
fatigue 0.607 0.119 5.122 0.000
cognitive ~~
fatigue 0.844 0.070 12.147 0.000
Intercepts:
Estimate Std.Err z-value P(>|z|)
.pcsisr801 0.000
.pcsisr802 0.000
.pcsisr803 0.000
.pcsisr804 0.000
.pcsisr805 0.000
.pcsisr806 0.000
.pcsisr807 0.000
.pcsisr808 0.000
.pcsisr809 0.000
.pcsisr810 0.000
.pcsisr811 0.000
.pcsisr812 0.000
.pcsisr813 0.000
.pcsisr814 0.000
.pcsisr815 0.000
.pcsisr816 0.000
.pcsisr817 0.000
physical 0.000
emotional 0.000
cognitive 0.000
fatigue 0.000
Thresholds:
Estimate Std.Err z-value P(>|z|)
pcsisr801|t1 0.270 0.113 2.384 0.017
pcsisr801|t2 1.530 0.175 8.748 0.000
pcsisr802|t1 0.771 0.125 6.186 0.000
pcsisr802|t2 1.530 0.175 8.748 0.000
pcsisr803|t1 0.973 0.133 7.306 0.000
pcsisr803|t2 1.758 0.204 8.632 0.000
pcsisr804|t1 0.853 0.128 6.677 0.000
pcsisr804|t2 2.151 0.281 7.657 0.000
pcsisr805|t1 1.005 0.135 7.456 0.000
pcsisr805|t2 1.984 0.243 8.172 0.000
pcsisr806|t1 1.038 0.137 7.604 0.000
pcsisr806|t2 2.151 0.281 7.657 0.000
pcsisr807|t1 0.719 0.123 5.852 0.000
pcsisr807|t2 1.984 0.243 8.172 0.000
pcsisr808|t1 0.573 0.119 4.829 0.000
pcsisr808|t2 1.672 0.192 8.720 0.000
pcsisr809|t1 -0.010 0.112 -0.088 0.930
pcsisr809|t2 1.672 0.192 8.720 0.000
pcsisr810|t1 0.395 0.115 3.438 0.001
pcsisr810|t2 1.597 0.182 8.754 0.000
pcsisr811|t1 0.596 0.119 5.001 0.000
pcsisr811|t2 1.597 0.182 8.754 0.000
pcsisr812|t1 0.668 0.121 5.514 0.000
pcsisr812|t2 1.859 0.220 8.465 0.000
pcsisr813|t1 0.353 0.114 3.087 0.002
pcsisr813|t2 1.758 0.204 8.632 0.000
pcsisr814|t1 0.482 0.116 4.136 0.000
pcsisr814|t2 1.859 0.220 8.465 0.000
pcsisr815|t1 0.882 0.129 6.837 0.000
pcsisr815|t2 1.672 0.192 8.720 0.000
pcsisr816|t1 0.668 0.121 5.514 0.000
pcsisr816|t2 1.597 0.182 8.754 0.000
pcsisr817|t1 0.853 0.128 6.677 0.000
pcsisr817|t2 1.672 0.192 8.720 0.000
Variances:
Estimate Std.Err z-value P(>|z|)
.pcsisr801 0.727
.pcsisr802 0.425
.pcsisr803 0.428
.pcsisr804 0.437
.pcsisr805 0.418
.pcsisr806 0.401
.pcsisr807 0.634
.pcsisr808 0.483
.pcsisr809 0.422
.pcsisr810 0.565
.pcsisr811 0.223
.pcsisr812 0.341
.pcsisr813 0.615
.pcsisr814 0.531
.pcsisr815 0.183
.pcsisr816 0.298
.pcsisr817 0.169
physical 1.000
emotional 1.000
cognitive 1.000
fatigue 1.000
Scales y*:
Estimate Std.Err z-value P(>|z|)
pcsisr801 1.000
pcsisr802 1.000
pcsisr803 1.000
pcsisr804 1.000
pcsisr805 1.000
pcsisr806 1.000
pcsisr807 1.000
pcsisr808 1.000
pcsisr809 1.000
pcsisr810 1.000
pcsisr811 1.000
pcsisr812 1.000
pcsisr813 1.000
pcsisr814 1.000
pcsisr815 1.000
pcsisr816 1.000
pcsisr817 1.000
Can you please help me understand the latent variable warning message of and give me some advice on how to solve this problem?
Thank you and best wishes,
Leonie
--
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 on the web visit https://groups.google.com/d/msgid/lavaan/6ee56a73-efa2-4d5c-bb60-07a03c54901cn%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "lavaan" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lavaan/eUH4PHfuQjQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lavaan+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lavaan/bbfcbfc9-fca4-4d9c-83e6-5636ec6a3f1an%40googlegroups.com.