Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

umx_make_TwinData: support DD (non-additive component) #78

Closed
tbates opened this issue Jul 2, 2019 · 3 comments
Closed

umx_make_TwinData: support DD (non-additive component) #78

tbates opened this issue Jul 2, 2019 · 3 comments

Comments

@tbates
Copy link
Owner

tbates commented Jul 2, 2019

Allow this:

tmp = umx_make_TwinData(AA= .4, DD= .4, C=0)
m1 = umxACE(selDVs="var", dzCr=.25, data = tmp)
a1 d1 e1
var 0.4 0.4 0.2

Originally posted by @tbates in #76 (comment)

@tbates
Copy link
Owner Author

tbates commented Jul 2, 2019

Done: Example simulating both D & C > 0

tmp = umx_make_TwinData(nMZ = 1000, AA = .4, DD = .2, CC = .2)
AA CC DD EE
var 0.4 0.2 0.2 0.2
path .63 .45 .45 .45

Then running ACE and ADE on the resulting data: makes a nice tutorial

m1 = umxACE(selDVs="var", data = tmp)

ACE

a1 c1 e1
var 0.86 0.24 0.45
m1 = umxACE(selDVs="var", data = tmp, dzCr=.25)

ADE

a1 d1 e1
var 0.9 . 0.44

@tbates tbates closed this as completed in a476517 Jul 2, 2019
@mcneale
Copy link
Collaborator

mcneale commented Jul 2, 2019 via email

@tbates
Copy link
Owner Author

tbates commented Jul 2, 2019

Could add option to deviate rA from .5 pretty easily, and allow simulating data from a trait with assortative mating.

You mean output the other relatives? That's a nice idea. What would be most useful? Probably will be a back burner project, as we don't yet have umx functions for extended twin design, but a teaching toy would be easy to mock up.

No identification problem on the data generation side, of course :-) I just:

ACDE   , hA+C+qD
hA+C+qD, ACDE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants