Hello all,
I'm curious, how does lavaan compute standard errors for models when indicators are categorical, and one specifies a "cluster" variable and a "sampling.weights" variable? A few years ago I remember trying to use sampling weights in a model estimated with DWLS and lavaan would return a message or warning that this can't be done (at least I think so, I could be misremembering). However, when I tried again this week, I got a result. I'm unsure of what changed (if anything), and curious where I can find more information about this?
For example, running:
---
fit <- sem(
mymodel,
data=mydata,
ordered=item.list,
cluster="COUNTRY",
sampling.weights="WGT"
)
summary(fit)
lavaan 0.6-13.1768 ended normally after 12 iterations
Estimator DWLS
Optimization method NLMINB
Number of model parameters 32
Number of observations 66516
Number of clusters [COUNTRY] 142
Number of missing patterns 1
Sampling weights variable WGT
...
Parameter Estimates:
Standard errors Robust.cluster.sem
Information Expected
Information saturated (h1) model Unstructured
...
---
Additionally, what does the sampling weights variable do in this case? Is the "Robust.cluster.sem" the same type of cluster robust used in Mplus?
Apologies for any duplicate questions from others. I know I've seen similar questions posted about sampling weights and categorical variables, but I couldn't quite find an answer.
Thank you for any information and help with understanding what is being done!
- Noah