tbates / umx

Making Structural Equation Modeling (SEM) in R quick & powerful
https://tbates.github.io/
44 stars 17 forks source link

umxGxE support ordinal #126

Open tbates opened 4 years ago

tbates commented 4 years ago

A formula interface for specifying the means residualisation would be nice. It would support residualizing means for both twin's values of moderator, but also allow more complex formulae, such as DV ~ T1mod + T1mod^2 + T1mod^3 )

yildirimselen commented 3 years ago

umxGxE currently does not solve binary models. After recoding the trait as a factor variable, the error message tells me that selDV must be numeric. If I run the analysis without using the factor variable, I get a result which treats the dependent variable as a continues variable. It would be a nice addition if umxGxE supports binary traits.

mcneale commented 3 years ago

umxGxE currently does not solve binary models. Agreed, it would be nice if it did. In the meantime, you could implement the model in OpenMx. There may be some example scripts on the Boulder workshop website. Also, see https://vipbg.vcu.edu/vipbg/Articles/BG-2009-39_NoteParaEModelBinData.pdf for special considerations with moderated binary/ordinal variables. There are classic Mx scripts in the appendix of that article, which might be a good place to start an OpenMx or umx contributed port.