Dear all,
I have searched for previous answers to this question, but the most recent I can find are from 2015 and might be out of date!
I am performing a confirmatory factor analysis. There are five endogenous variables in total, three are categorical data and two are count data. By count data, I mean the number of occurrences of a certain event/number of a certain object (e.g. number of tumours on MRI scan). I have declared the categorical data as 'ordered' using the ordered function in my data.frame, but am not sure how to treat the count data? Can anyone advise me as to whether it's possible to run a CFA in lavaan using count data? And if so, how should I specify my count variables?
Many thanks in advance,
Olivia