Dear all

I am trying to run a saturated model but there is something wrong in the way I have have ordered the variables, as I received this error message:

# Error: In model 'Sat' column 'dm1' is not an ordered factor. Use mxFactor() on this column.

So, I did the following after the reshape command:

TwDEP_DM
colnames(TwDEP_DM)
TwDEP_DM$dm1
TwDEP_DM$dep1
TwDEP_DM$dm2
TwDEP_DM$dep2

But:

> SatFit
Running Sat

# Error: In model 'Sat' I was expecting 1 thresholds in column 'dm1' of matrix/algebra 'MZ.expThresMZ' but I hit NA values after only 0 thresholds. You need to increase the number of free thresholds for 'dm1' and give them values other than NA

Is there anything I can do differently?

I think there is something in the mxFactor () as all of the "0" has been replaced as "1"; "1" with "2" ...

I have tried:

TwDEP_DM$dm1
TwDEP_DM$dm1

Any help will be much appreciated.

Kind regards

Carol