Hello, I'm running SEM to assess the causality effect of climatic variables on the incidence of malaria.
I developed two different SEM models:
Mod<-'F1=~Rainfall+Mean_Relative.Humidity
+Max_Relative.Humidity
F2=~Mean_Temperature+Max_Temperature
Malaria_Incidence~F1+F2
F1~~F2
'
Mod2<-'F1=~Rainfall+Mean_Relative.Humidity+Mean_Temperature
Malaria_Incidence~F1
F1~~F1
'
When I run the first model, I got the warning message:
mod.1 <- sem(Mod, data=Mal1,fixed.x = T,estimator = "WLSM")
Warning message:
In lav_object_post_check(object) :
lavaan WARNING: some estimated ov variances are negative.
But I run the second model without any warning and error message.
Summary of Mod1
summary(mod.1, stand=TRUE,fit.measures=TRUE,rsq=TRUE)
lavaan 0.6.14 ended normally after 35 iterations
Estimator DWLS
Optimization method NLMINB
Number of model parameters 14
Number of observations 1193
Model Test User Model:
Standard Scaled
Test Statistic 96.884 554.531
Degrees of freedom 7 7
P-value (Chi-square) 0.000 0.000
Scaling correction factor 0.175
Satorra-Bentler correction
Model Test Baseline Model:
Test statistic 8079.332 8079.332
Degrees of freedom 15 15
P-value 0.000 0.000
Scaling correction factor 1.000
User Model versus Baseline Model:
Comparative Fit Index (CFI) 0.989 0.932
Tucker-Lewis Index (TLI) 0.976 0.855
Robust Comparative Fit Index (CFI) 0.988
Robust Tucker-Lewis Index (TLI) 0.975
Root Mean Square Error of Approximation:
RMSEA 0.104 0.256
90 Percent confidence interval - lower 0.086 0.214
90 Percent confidence interval - upper 0.123 0.301
P-value H_0: RMSEA <= 0.050 0.000 0.000
P-value H_0: RMSEA >= 0.080 0.985 1.000
Robust RMSEA 0.107
90 Percent confidence interval - lower 0.100
90 Percent confidence interval - upper 0.115
P-value H_0: Robust RMSEA <= 0.050 0.000
P-value H_0: Robust RMSEA >= 0.080 1.000
Standardized Root Mean Square Residual:
SRMR 0.060 0.060
Parameter Estimates:
Standard errors Robust.sem
Information Expected
Information saturated (h1) model Unstructured
Latent Variables:
Estimate Std.Err z-value P(>|z|) Std.lv Std.all
F1 =~
Rainfall 1.000 0.837 0.837
Men_Rltv.Hmdty 1.134 0.032 35.436 0.000 0.949 0.949
Max_Rltv.Hmdty 1.015 0.033 30.866 0.000 0.849 0.849
F2 =~
Mean_Temperatr 1.000 0.597 0.597
Max_Temperatur 2.129 0.115 18.527 0.000 1.271 1.271
Regressions:
Estimate Std.Err z-value P(>|z|) Std.lv
Malaria_Incidence ~
F1 0.243 0.049 5.009 0.000 0.204
F2 -0.269 0.049 -5.476 0.000 -0.160
Std.all
0.204
-0.160
Covariances:
Estimate Std.Err z-value P(>|z|) Std.lv Std.all
F1 ~~
F2 -0.313 0.024 -12.926 0.000 -0.627 -0.627
Variances:
Estimate Std.Err z-value P(>|z|) Std.lv Std.all
.Rainfall 0.299 0.021 14.000 0.000 0.299 0.299
.Men_Rltv.Hmdty 0.099 0.009 10.579 0.000 0.099 0.099
.Max_Rltv.Hmdty 0.278 0.014 19.683 0.000 0.278 0.278
.Mean_Temperatr 0.644 0.032 20.381 0.000 0.644 0.644
.Max_Temperatur -0.616 0.065 -9.447 0.000 -0.616 -0.616
.Malaria_Incdnc 0.892 0.087 10.213 0.000 0.892 0.892
F1 0.701 0.034 20.748 0.000 1.000 1.000
F2 0.356 0.030 11.706 0.000 1.000 1.000
R-Square:
Estimate
Rainfall 0.701
Men_Rltv.Hmdty 0.901
Max_Rltv.Hmdty 0.722
Mean_Temperatr 0.356
Max_Temperatur NA
Malaria_Incdnc 0.108
Summary of Mod2:
summary(mod.1, stand=TRUE,fit.measures=TRUE,rsq=TRUE)
lavaan 0.6.14 ended normally after 21 iterations
Estimator DWLS
Optimization method NLMINB
Number of model parameters 8
Number of observations 1193
Model Test User Model:
Standard Scaled
Test Statistic 53.234 96.080
Degrees of freedom 2 2
P-value (Chi-square) 0.000 0.000
Scaling correction factor 0.554
Satorra-Bentler correction
Model Test Baseline Model:
Test statistic 1782.303 1782.303
Degrees of freedom 6 6
P-value 0.000 0.000
Scaling correction factor 1.000
User Model versus Baseline Model:
Comparative Fit Index (CFI) 0.971 0.947
Tucker-Lewis Index (TLI) 0.913 0.841
Robust Comparative Fit Index (CFI) 0.971
Robust Tucker-Lewis Index (TLI) 0.912
Root Mean Square Error of Approximation:
RMSEA 0.147 0.199
90 Percent confidence interval - lower 0.114 0.155
90 Percent confidence interval - upper 0.182 0.246
P-value H_0: RMSEA <= 0.050 0.000 0.000
P-value H_0: RMSEA >= 0.080 1.000 1.000
Robust RMSEA 0.148
90 Percent confidence interval - lower 0.123
90 Percent confidence interval - upper 0.174
P-value H_0: Robust RMSEA <= 0.050 0.000
P-value H_0: Robust RMSEA >= 0.080 1.000
Standardized Root Mean Square Residual:
SRMR 0.061 0.061
Parameter Estimates:
Standard errors Robust.sem
Information Expected
Information saturated (h1) model Unstructured
Latent Variables:
Estimate Std.Err z-value P(>|z|) Std.lv Std.all
F1 =~
Rainfall 1.000 0.876 0.876
Men_Rltv.Hmdty 0.963 0.039 24.574 0.000 0.844 0.844
Mean_Temperatr -0.496 0.033 -14.803 0.000 -0.434 -0.434
Regressions:
Estimate Std.Err z-value P(>|z|) Std.lv
Malaria_Incidence ~
F1 0.381 0.035 10.846 0.000 0.334
Std.all
0.334
Variances:
Estimate Std.Err z-value P(>|z|) Std.lv Std.all
F1 0.768 0.044 17.307 0.000 1.000 1.000
.Rainfall 0.232 0.032 7.236 0.000 0.232 0.232
.Men_Rltv.Hmdty 0.288 0.029 10.092 0.000 0.288 0.288
.Mean_Temperatr 0.811 0.034 24.071 0.000 0.811 0.811
.Malaria_Incdnc 0.888 0.088 10.119 0.000 0.888 0.888
R-Square:
Estimate
Rainfall 0.768
Men_Rltv.Hmdty 0.712
Mean_Temperatr 0.189
Malaria_Incdnc 0.112
I would like to know if the two models are valid. Could I use the mod one with warning message?
Any comment is welcome to help me.