Hi, I am trying to calculate factor scores for a new person not in the sample on which I fitted my 2-factor CFA model. Indicators are items in a questionnaire on a likert scale, thus ordered. My original data is numeric. I changed to ordered data and the same with the new person and using str (data) they both look like ordered. I have tried "everything" and I always get this error message: "Error: lavaan->lav_predict_internal(): mismatch number of categories for some ordered variables in newdata compared to original data."
When using lavInspect, however, original data seems to still be numeric. So, could someone please help me with some guidelines to get this right from the beginning?
Regards
Ulf L.