Example Scripts for mxComputeEM?
Posted on

Dear All,
I wonder if anybody could share example scripts involves using mxComputeEM?
The only sample code I found is in paper by Paritikin, Hunter, and Boker 2015 conducting item factor analysis https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4822086/, where mxComputeEM is called with arguments: "expectation = , predict = ". However, as the help file (version 2.11.5) of mxComputeEM suggests, these two arguments are deprecated, and an argument called "estep" should be used.
I am trying to use mxComputeEM to fit multivariate Gaussian mixture models. Any sample code for this kind of finite mixture models would be helpful as well.
Thanks a lot!
examples
mxComputeEM(e,p,mstep=m)
is equivalent tomxComputeEM(estep=mxComputeOnce(e,p), mstep=m)
. The old style continues to work, but the new style may be more suitable for your needs.I am curious to learn more about how you wish to implement your model.
Log in or register to post comments
In reply to examples by jpritikin
Thanks a lot Joshua! However,
Log in or register to post comments
In reply to Thanks a lot Joshua! However, by ZZ
api
mxAlgebra(..., fixed=TRUE, name="E")
and then recompute it in your estep withestep=mxComputeOnce('E')
Log in or register to post comments