I’m conducting a Confirmatory Factor Analysis (CFA) with ordinal data using the lavaan
package in R. The data comes from a survey that includes 16 Likert-scale items. I suspect a 4-factor model fits my data best. While researching, I found a recommendation to use DWLS estimation along with polychoric correlation. I haven’t used Mplus before and prefer to work with R.
Here’s how I specified my model with lavaan
:
model.4=' AV =~ AVf1_+AVf2+AVf3+AVf4
AW =~ AWf1+AW2+AWf3+AWf4
AB =~ ABf1+ABf2+ABf3+ABf4
AA =~ AAf1+AAf2+AAf3+AAf4 '
I utilized the ordered
function for the CFA given our ordered data:
model.ord = cfa(model.4, data=Data, ordered=c(
"AVf1","AVf2","AVf3","AVf4",
"AWf1","AWf2","AWf3","AWf4",
"ABf1","ABf2","ABf3","ABf4",
"AAf1","AAf2","AAf3","AAf4"))
This ran successfully, producing the relevant fit indices. My question is whether this method automatically uses polychoric correlation like Mplus does? If not, how can I adjust my function to implement polychoric correlation? I tried using lavCor
, but it didn’t work as expected:
model.ord1 <- lavCor(cfa(model.4, data=Data, ordered=c(
"AVf1","AVf2","AVf3","AVf4",
"AWf1","AWf2","AWf3","AWf4",
"ABf1,"ABf2","ABf3","ABf4",
"AAf1","AAf2","AAf3","AAf4"))
The summary function didn’t provide any results. Can anyone help clarify if polychoric correlation is used here, and if not, how to incorporate it properly?