using "ordered=" with lavaan.survey

89 views
Skip to first unread message

Ben Southern

unread,
May 31, 2019, 5:03:31 PM5/31/19
to lavaan
So, in short, when I use "ordered = c(NAMES OF OUTCOME VARIABLES)" the output does change when I am not using survey weights with the lavaan.survey package. But the output is exactly the same whether I include the ordered= argument or not in the fit variable when using lavaan.survey. I need to add survey weights and also want to use ordered regression. Does anyone know how to do this?
My current code:
#######################################################################################
Model<- '
# latent variables
Dev1 =~ dev11 + dev12
Dev2 =~ dev21 + dev22
Fam =~ fam1 + fam2

# regressions
mental ~ Fam + SEX + income + education + Dev1 + Dev2 + interference
physical ~ Fam + SEX + income + education + Dev1 + Dev2 + interference
'

fit<- sem(Model, data = gss, ordered = c("mental", "physical "))

svy.df<-svydesign(id=RECID, weights=WGHT_PER, data=gss)
survey.fit <- lavaan.survey(fit, svy.df) 
summary(survey.fit, fit.measures=TRUE, standardized=TRUE, rsquare=TRUE)
##########################################################################################
I can't seem to get the ordered= argument to do anything when I'm using survey weights with lavaan.survey. Any ideas and advice are appreciated.
Thank you

Terrence Jorgensen

unread,
Jun 1, 2019, 6:22:52 AM6/1/19
to lavaan
The survey package cannot handle categorical outcomes, so there is nothing for lavaan.survey to do with that information.

Terrence D. Jorgensen
Assistant Professor, Methods and Statistics
Research Institute for Child Development and Education, the University of Amsterdam

Ben Southern

unread,
Jun 1, 2019, 8:37:39 AM6/1/19
to lavaan
Thanks for the information.
Reply all
Reply to author
Forward
0 new messages