Hello,
- I've built a simple model with Onyx with no latent variables, a constant, one endogenous observed variable and two exogenous observed variables, with one path each from the exogenous variables and constant to the endogenous variable, to see how Onyx may be used for (eventually, simultaneous) regression equations with only observed variables. I created a data set with random values for the two exogenous variables and defined the endogenous variable as the sum of the constant and the sum of the products of coefficient and exogenous variable (Y=const + b1X1 + b2X2). I used 200 observations.
The estimates of all coefficients was accurate, but the fit measures seem off - particularly for such a simple model. Chi-square is 541.05, RMSEA 0.95, CFI 0.70, and TLI 0.41. Only SRMR suggests a good fit (0.02). Are there any reasons for this?
-
In other models with no latents - though with far fewer observations - several fit measures were reported as NaN; TLI turned out negative. What might cause this to happen?
-
Also, at least two text books calculate df as k(k+1)/2 - p where k = # variables and p = # parameters estimated. As I understand it, k(k+1)/2 = number of knowns = number of covariances + the number of correlations. Onyx seems to add k to the formula while reporting observed statistics. What is the reason?
Thanks for your help.
Often helpful to describe the model in OpenMx functions. Is this it?
The missing fit indices are because OpenMx doesn't compute reference models for raw data by default.
The easiest solution to this is to update to OpenMx 2.0 beta (release version expected soon), and add a call to mxRefModels()
The lack of fit suggests that your manifests have covariances you have not modelled. For instance in this case, adding
Gives dramatically better fit...
χ²(1491) = 0, p < 0.001; CFI = 1; TLI = 1; RMSEA = 0
For Onyx help, you should post a link to this question in the Onyx forum... (look in forms for the Onyx group).
Cheers,
tim
Thank you very much for the detailed answer, will check out your suggestions with my data. mdr