Hi,
I am fitting the following second order factor model, where constraints were added on latent variable variances for identification:
model <- '
F1 =~ NA*X1 + X2 + X3 + X4
F2 =~ NA*X5 + X6 + X7
F3 =~ NA*X8 + X9 + X10
G =~ NA*c1*F1 + c2*F2 + c3*F3
F1 ~~ var_F1*F1
F2 ~~ var_F2*F2
F3 ~~ var_F3*F3
var_F1 == 1 - c1^2
var_F2 == 1 - c2^2
var_F3 == 1 - c3^2
G ~~ 1*G
'
It works fine with cfa function from lavaan, but when I use the exact same model with bcfa I got the following error:
Error in prisplit[[1]] : subscript out of bounds
I spent some time in the source code but still have no clue why this happen or how to fix it.
Thanks in advance for any suggestions or comments.