For anyone interested in running multivariate genetic models with sex as a moderating variable, here is a script
based on the correlated factors approach to ensure that the order of the variables does not affect the ability of the model to account for the DZOS data.
(Ref: Neale et al., Multivariate genetic analysis of sex-lim and G x E interaction, Twin Research & Human Genetics, 2006 ).
The author is dr.Frühling Rijsdijk, who has approved of the sharing of the script.
|MVcor3var_ IP_CP_OpenMx.R ||55.19 KB|