Factor loadings, residual variances and means estimation
Posted on

Dear users,
I was trying to model latent variable via the common factor model using path-centric model specification as it is shawn in the examples in OpenMx User Guide, Release 1.2.0-1919, chapter 2.2 Factor Analysis, Path Specification (http://openmx.psyc.virginia.edu/docs/OpenMx/latest/OpenMxUserGuide.pdf). My purpose was to to estimate factor loadings, residual variances and means. But in all my attmpts I did not receive the chi-square statistics and some other goodness of fit measures like CFI, TLI and RMSEA. Even in the example exactly copied from the above source (http://openmx.psyc.virginia.edu/svn/tags/stable-1.2/demo/OneFactorModel_PathRaw.R) I have not received the chi-square value. Is there any mistakes?
best regards,
Krzysiek
If you were using raw data,
The general format of use is as follows:
# Example usage
amod <- mxModel(blah)
smod <- mxSaturatedModel(amod, run=TRUE)
summary(amod, SaturatedLikelihood=smod)
Once the SaturatedLikelihood argument is given the saturated model, the summary should return all the fit indices you mentioned. Let us know if it does not!
Log in or register to post comments
In reply to If you were using raw data, by mhunter
Cool
One thing I noted, your file defines omxSaturatedModel() not mxSaturatedModel() so a slight tweak to read
# Example usage
amod <- mxModel(blah)
smod <- omxSaturatedModel(amod, run=TRUE)
summary(amod, SaturatedLikelihood=smod)
seems needed.
Log in or register to post comments
In reply to If you were using raw data, by mhunter
Thank you!
It really helps me!
Krzysiek
Log in or register to post comments