> mxVersion()
OpenMx version: 2.0.0.3838
R version: R version 3.1.1 (2014-07-10)
Platform: x86_64-w64-mingw32
Default optimiser: CSOLNP
I'm using SaturatedLikelihood= and IndependenceLikelihood= commands to obtain global fit indices and noticed that the degrees of freedom associated with the chi-square statistic is incorrect. The fit of the saturated model is:
observed statistics: 2221
estimated parameters: 35
degrees of freedom: 2186
-2 log likelihood: 15732.61
number of observations: 933
and the fit of the fitted model is:
observed statistics: 2221
estimated parameters: 3
degrees of freedom: 2218
-2 log likelihood: 17491.9
saturated -2 log likelihood: 15732.61
number of observations: 933
chi-square: X2 ( df=752 ) = 1759.291, p = 1.751331e-82
The degrees of freedom for the chi-square statistic should be difference in the degrees of freedom for the two model (2218-2186=32), but the reported df for the chi-square is 752 and this leads to an incorrect RMSEA.