bootstrap likelihood ratio test (BLRT) for GMM with definition variables
Posted on
Veronica_echo
Joined: 02/23/2018
Attachment | Size |
---|---|
Screen Shot 2018-04-13 at 2.35.08 PM.png | 95.67 KB |
Forums
Hi everyone,
I would like to conduct BLRT test for 2 nested GMM model with definition variables. I referred to a previous post
https://openmx.ssri.psu.edu/node/4329 and it worked well on my computer. However, when I run the comparison of my model, it reported errors. I attached a screenshot of LRT without and with bootstrap in the attachment. And here is the information of my OpenMx Version:
> mxVersion()
OpenMx version: 2.9.6 [GIT v2.9.6]
R version: R version 3.4.4 (2018-03-15)
Platform: x86_64-apple-darwin15.6.0
MacOS: 10.13.4
Default optimiser: CSOLNP
NPSOL-enabled?: Yes
OpenMP-enabled?: Yes
Thanks in advance!
Script?
Log in or register to post comments
In reply to Script? by AdminRobK
Thanks for kind and prompt
Log in or register to post comments
In reply to Thanks for kind and prompt by Veronica_echo
I reproduce the error you
mxGenerateData()
raises an error if it sees definition variables inside an MxModel object that doesn't contain an MxData object.The bug-fix will seemingly require modifying the behavior of
mxGenerateData()
when used with models that have MxExpectationMixture.As a workaround, try putting the MxData object inside the mixture components
class1
,class2
, andclass3
, and see it that makes a difference. Alternately, you could try definingsloLoads
differently, so that its labels arepaste0("GMM2Class.data.T", 1:10)
when used with the two-component model, andpaste0("GMM3Class.data.T", 1:10)
when used with the three-component model.Log in or register to post comments
In reply to I reproduce the error you by AdminRobK
Thanks for advice
Log in or register to post comments
In reply to I reproduce the error you by AdminRobK
Another error
Log in or register to post comments
In reply to Another error by Veronica_echo
mxBootstrap
Log in or register to post comments
In reply to mxBootstrap by jpritikin
Wait, I don't think that's
mxBootstrap()
is for nonparametric bootstrapping, so its behavior doesn't depend uponmxGenerateData()
.Log in or register to post comments
In reply to Wait, I don't think that's by AdminRobK
Rob is correct
Log in or register to post comments
investigating
Log in or register to post comments
In reply to investigating by jpritikin
a bunch of stuff related to inherited MxData was broken
Log in or register to post comments
In reply to a bunch of stuff related to inherited MxData was broken by jpritikin
Thank you
Log in or register to post comments
In reply to Thank you by Veronica_echo
os/x builds
Log in or register to post comments
In reply to Thank you by Veronica_echo
Specifically, you could try
Log in or register to post comments
In reply to Specifically, you could try by AdminRobK
Requirement for R version
Log in or register to post comments
In reply to Requirement for R version by Veronica_echo
R version
Not that I know of. But, I'm not involved in building OpenMx for MacOS. Are you downloading the file and installing the package from that local file?
Log in or register to post comments
In reply to R version by AdminRobK
Yep, and here is the
Log in or register to post comments
In reply to Yep, and here is the by Veronica_echo
You might need to
repos=NULL
toinstall.packages()
to install a local file.You use RStudio, right? It's also possible to install a local file with RStudio's package-installation interface.
Also, the extension of a MacOS package binary should be .tgz, not .tar.
Log in or register to post comments
In reply to You might need to by AdminRobK
Yes, it works now. Thank you
Log in or register to post comments
In reply to Specifically, you could try by AdminRobK
One more question
Log in or register to post comments
In reply to One more question by Veronica_echo
cluster
Log in or register to post comments
In reply to cluster by jpritikin
Thanks for your kind advice!
Log in or register to post comments
In reply to Thanks for your kind advice! by Veronica_echo
def vars
Log in or register to post comments
In reply to Thanks for your kind advice! by Veronica_echo
I agree with Joshua
git clone git@github.com:OpenMx/OpenMx.git
cd OpenMx/
git checkout stable
make install
Log in or register to post comments
Yes, I think so
Log in or register to post comments