Full bivariate moderation model
Attachment | Size |
---|---|
Example script | 12.41 KB |
I am trying to investigate how school performance modifies the genetic and environmental influences on intelligence running a full bivariate moderation model (a la the extended GxE model in Purcell 2002). However, my OpenMx results differ a lot from what my collaborator has obtained using the old Mx software, so I really hope that one of you can help me figure out what I have done wrong in the attached script.
The two data frames "datmz" and "datdz" that I load in the script contain data on MZ and DZ twin pairs, respectively. Each row in the data frames represents one twin pair. The data frames include six variables: defm1 (GPA for twin 1), defm2 (GPA for twin 2), m1 (GPA for twin 1), t1 (IQ for twin 1), m2 (GPA for twin 2), and t2 (IQ for twin 2). The variables I use are standardized residuals of the original variables after having regressed out the influences of sex and age. First, I run the full bivariate moderation model and afterwards I try to constrain (a) the common A, C, E, and unique A and E moderation paths to 0, and (b) all moderation paths to 0.
I am using OpenMx version 2.19.8 in R version 4.1.1 on the following platform: x86_64-w64-mingw32; my OpenMx's default optimizer is SLSQP.
Best regards,
Emilie
Which one is correct
Log in or register to post comments
In reply to Which one is correct by AdminNeale
Script example?
Log in or register to post comments