tbates / umx

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

implement umxDiscTwin discordant twin test of causation #183

Open tbates opened 2 years ago

tbates commented 2 years ago

Function call:


tmp = umxDiscTwin(x = "exercise", y = "depression", data= twinData, mzZygs = c("MZFF", "MZMM"), dzZygs = c("DZFF", "DZMM", "DZOS"))

Internal modelling

MZ1  = lme(fixed = y ~ x + FamMeanX, random = ~ 1|FAMID, data = umx_scale(MZ), na.action = "na.omit")

Refs

discordant_causal_patterns

tbates commented 2 years ago

Implement the discordant twin design for testing causality. Create bar graph of r in the population, MZ, and DZ groups, with CI, and return correlations as a table also.

McGue, M., Osler, M., & Christensen, K. (2010). Causal Inference and Observational Research: The Utility of Twins. Perspectives on Psychological Science, 5, 546-556. doi:10.1177/1745691610383511

DiscordantTwins