umxTwinify
#166
Replies: 1 comment
-
your wish is my command :-) paths = c(
umxPath(v1m0 = c("a1", 'c1', "e1")),
umxPath(means = c("wt")),
umxPath(c("a1", 'c1', "e1"), to = "wt", values=.2)
)
# 2. Make a twin model from the paths for one person
m1 = umxTwinMaker("test", paths, mzData = mzData, dzData= dzData)
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Given an SEM for an individual, automatically generate a twin version. The model should be specified in path syntax, then exogenous latent variables can be discovered by examining their corresponding row of the A matrix, which should have no free parameter or non-zero entries. This latent variable then gets ACE variables specifically pointing to it (3 more columns of the A and S matrices), repeat for all latent variables. Next, duplicate the model for twin 2, rename the variables, and put in covariance paths between the A's and C's. Could be done separately for MZ and DZ, umxSuperModel them, and Robert's your mother's brother eh?
Beta Was this translation helpful? Give feedback.
All reactions