Attachment | Size |
---|---|
![]() | 55 KB |
![]() | 20.2 KB |
Hi, I am new with R and OpenMx. Recently I revised Dorothy Bishop's script to run ACE models. However, her original code could not get the 95%CI for of A,C,E estimates, but only 95%CI for Unsquared path estimates. I know mxCI() can obtain 95%CI, but after various attempts, it never works for me. Could any expert have a look of the code and let me know how should I add it?
Thanks!
Unless I'm missing something, you'd just need to put
mxCI(c("A","C","E"))
into the MxModel you're naming "twinACE", and passintervals=TRUE
tomxRun()
.Thanks much for your response. However, I want to get the 95%CI for a2_ACE, c2_ACE, e2_ACE for this script:
Should I add
mxCI(c("a2_ACE"," c2_ACE "," e2_ACE"))
to somethere? Thanks again for your help!When you compute a value outside the model like
A_ACE/V
, you can't use mxCI().Options include
mxSE(A_ACE/V, model)
or adding functions like this to the twin model:mxAlgebra(name= "A_std", A_ACE/V)
you can then request
mxCI("A_std")
andintervals= TRUE
in the mxRun()Finally: Check out the umx package twin modelling functions like
umxACE
https://cran.r-project.org/web/packages/umx
and the accompanying open access paper
Bates, T. C., Neale, M. C., & Maes, H. H. (2019). umx: A library for Structural Equation and Twin Modelling in R. Twin Research and Human Genetics, 22, 27-41. link. doi:10.1017/thg.2019.2