I am trying to do a CFA for the first time. Lavaan gives the following error.
Error in lavParseModelString(model) :
lavaan ERROR: syntax error in lavaan model syntax
My code looks simplified like this:
mycfa <- 'Construct =~ A +
B +
C +
D +
E +
F +
G +
H
'
fit <- cfa(mycfa, data = mydataframe)
I would guess that regression dependencies and covariances are in my model or would lavaan output otherwise? Does anyone have a tip for me on how to proceed.