Published on *OpenMx* (http://openmx.psyc.virginia.edu)

By *Sacha*

Created *05/30/2011 - 20:31*

Mon, 05/30/2011 - 20:31 — Sacha [1]

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... [2]

http://openmx.psyc.virginia.edu/thread/530 [3]

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!

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

MxOrdModel.R [4] | 3.48 KB |

**Links:**

[1] http://openmx.psyc.virginia.edu/users/sacha

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

[3] http://openmx.psyc.virginia.edu/thread/530

[4] http://openmx.psyc.virginia.edu/sites/default/files/MxOrdModel_0.R

[5] http://openmx.psyc.virginia.edu/thread/940

[6] http://openmx.psyc.virginia.edu/thread/867

[7] http://openmx.psyc.virginia.edu/forums/opensem-forums/confirmatory-factor-analysis-and-measurement-models