Attachment | Size |
---|---|
![]() | 99.46 KB |
Hello,
Does anyone have an OpenMx script for running a Univariate ACE model for a binary variable? I would like to determine the proportion of variance accounted for by additive genetic, shared, and unique environment for a binary variable that indicates whether someone is or is not a member of a certain class of psychopathology.
Thank you in advance!
Emily
Try the umx CRAN package?
check out here:
https://vipbg.vcu.edu/vipbg/OpenMx2/docs//OpenMx/latest/GeneticEpi_Matrix.html
and here:
https://vipbg.vcu.edu/vipbg/OpenMx2/docs//OpenMx/latest/Ordinal_Matrix.html
umx::umxACE()
will do the right thing with your binary variable.Just make sure your binary variable is a factor (the umxFactor() helper can be useful here too). Here's the example from the help: