object '"DWLS"' not found

55 views
Skip to first unread message

Feng Yu

unread,
Dec 5, 2023, 1:16:28 PM12/5/23
to Genomic SEM Users
When I try to use Confirmatory factor analysis, I get "Error in usermodel(anthro, estimation = "DWLS", model = CFAofEFA, CFIcalc = TRUE, : object '"DWLS"' not found".
  object '"DWLS"' not found", my code is as follows "#Specify the Genomic confirmatory factor model
CFAofEFA <- 'F1 =~ ADHD+AN+ASD+BD+MDD+OCD+PTSD+SC
             F2 =~ A02B+A10+B01A+C01D+C02+C03+C07+C08+C09+C10AA+H03A+L04+M01A+M05B+N02A+N02BA+N02BE+N02C+N06A+R03A+R03BA+R06A+S01E
             F3 =~ SA
             F1~~F2
             F1~~F3
             F2~~F3
Waist ~~ a*Waist
a > .001'
#run the model
Anthro<-usermodel(anthro,estimation="DWLS", model = CFAofEFA, CFIcalc = TRUE, std.lv = TRUE, imp_cov = FALSE)"

agro...@gmail.com

unread,
Jan 27, 2024, 8:45:16 AMJan 27
to Genomic SEM Users
I'm not able to reproduce this error. I'm wondering if the issue is that you have a quote at the end of your usermodel line? 
Reply all
Reply to author
Forward
0 new messages