Hi,
My model has 5 latent variables which are measured by a total of 37 indicators. All indicators, except nb_kms, are ordinal data (a scale with values ranging from 1 to 5). Following Lavaan tutorial, I specified the indicators as ordinal and run CFA and SEM with WLS as estimator. At this stage I encountered four problems:
1- 1- AIC and BIC are not computed with WLS. I need them because I would like to compare alternative models.
2- 2- For the structural model, standard errors and p-values are not computed for the parameters of the equations. Thus I can’t conclude on the significance of the relationship between my latent variables.
3- 3- I get more than 50 warnings in the format: “empty cell(s) in bivariate table of sent8 x pol3”
4- 4- I tried several estimators: WLS, DWLS and WLSMV. How to choose the most appropriate one?
Alternatively, I ran the CFA and SEM models with ML bootstrap and MLR estimators which are advised for non-normal variables. But I doubt that I can consider the results as reliable…
What would you advise in this situation? My program is below.
Thank you for your help!
Best regards,
Hélène
################### Measurement model ##########################################
modele_mesure <- ' environnement =~ nep1+nep4+nep5+pol1+pol3+pol4+pol5+pol6+pbvoit1+pbvoit3+pbvoit4+pbvoit5
affectif =~ aff1+aff3+aff6+aff5+instr1+instr5
perception =~ instr7 + +instr8 +instr9 +temps1 +temps2 +temps3 +temps7 +sent1 +sent2 +sent3 +sent4 +sent5 +sent6 +sent7 +sent8
tpt_doux =~ fce_tcu + fce_train_car
voiture =~ fce_voit + nb_voit'
fit_mesure <- cfa(modele_mesure, data = epd_opi_ord,estimator = "WLS")
summary(fit_mesure, fit.measures = TRUE)
fitMeasures(fit_mesure,"all")
################### Stuctural model ##########################################
modele_str1 <- '
#measurement model
environnement =~ nep1+nep4+nep5+pol1+pol3+pol4+pol5+pol6+pbvoit1+pbvoit3+pbvoit4+pbvoit5
affectif =~ aff1+aff3+aff5+aff6+instr1+instr5
perception =~ instr7 + +instr8 +instr9 +temps1 +temps2 +temps3 +temps7 +sent1 +sent2 +sent3 +sent4 +sent5 +sent6 +sent7 +sent8
tpt_doux =~ fce_train_car+ fce_tcu
voiture =~ fce_voit + nb_voit
#regressions
perception ~ affectif + environnement
tpt_doux ~ perception +voiture + affectif + environnement
voiture ~ perception + tpt_doux + affectif + environnement
'
fit1 <- sem(modele_str1, data = epd_opi,estimator = "WLS", ordered=c("nep1","nep4","nep5","pol1","pol3","pol4","pol5","pol6","pbvoit1","pbvoit3","pbvoit4","pbvoit5","aff1","aff3","aff5","aff6","instr1","instr5","instr7", "instr8 ","instr9 ","temps1 ","temps2 ","temps3 ","temps7 ","sent1 ","sent2 ","sent3 ","sent4 ","sent5 ","sent6 ","sent7 ","sent8","fce_tcu "," fce_train_car","fce_voit"))
summary(fit1, standardized = TRUE, fit.measures=TRUE)1- 1- AIC and BIC are not computed with WLS. I need them because I would like to compare alternative models.
2- 2- For the structural model, standard errors and p-values are not computed for the parameters of the equations. Thus I can’t conclude on the significance of the relationship between my latent variables.
3- 3- I get more than 50 warnings in the format: “empty cell(s) in bivariate table of sent8 x pol3”
4- 4- I tried several estimators: WLS, DWLS and WLSMV. How to choose the most appropriate one?
Alternatively, I ran the CFA and SEM models with ML bootstrap and MLR estimators which are advised for non-normal variables. But I doubt that I can consider the results as reliable…
What would you advise in this situation?