Attachment | Size |
---|---|

MxOrdModel.R [6] | 3.48 KB |

Hi,

This is literally the first day I every used OpenMx so it is all quite new to me, maybe I am making a stupid mistake here.

I am attempting to perform a two-group CFA of one continuous factor on six ordinal predictors in OpenMx using Weighted Least Squares (WLS) estimation. I have the polychoric correlation/covariance matrices and I managed to get it working with help of:

http://openmx.psyc.virginia.edu/docs/OpenMx/latest/FactorAnalysisOrdinal_Matrix.html

http://openmx.psyc.virginia.edu/thread/530

It runs and I get parameter estimates that look reasonable (pretty much the same I get from mplus, so I am happy with that). Not sure if the weights matrix is estimated correctly (I now do adf.wmat() on the raw data) but that's not that much of a problem right now.

Only thing that I don't get working is the goodness of fit indices. I can't figure out how I tell the fit how much observed parameters and observations I have. Is this possible? Or should I make changes to how I setup the model?

Attached is my model. Thanks in advance!