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)"