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.
It is quite simple:
Created on 2021-04-23 by the reprex package (v2.0.0)