This error is mystifying me. Use the attached data. Use this model
past.single.model <- 'hold =~ x1 + x2 + x3 + x4 + x5
'
fit like this
past.single <- bcfa(past.single.model, data = test, bcontrol = list(cores = 3),
ordered = c("x1", "x2", "x3", "x4", "x5"))
Everything fits and is great. I can then remove any variable from the model I want *except* x2. Whenever I remove x2, I get the following error:
Error in eval(mc, parent.frame()) :
Exception: mismatch in number dimensions declared and found in context; processing stage=data initialization; variable name=Nordobs; dims declared=(1); dims found=() (in 'string', line 517, column 2 to column 33)
And sampling isn't done. Any clue what is going on here?
Thanks!