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

implement umxDiscTwin discordant twin test of causation #183

Open
7 of 8 tasks
tbates opened this issue Dec 27, 2021 · 1 comment
Open
7 of 8 tasks

implement umxDiscTwin discordant twin test of causation #183

tbates opened this issue Dec 27, 2021 · 1 comment
Assignees
Labels
graphics/UI plot, tables, summary etc. Models New model types for umx top5 marked as an active goal: close before working on other issues
Milestone

Comments

@tbates
Copy link
Owner

tbates commented Dec 27, 2021

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")
  • take raw data, parse by zygosity, make long, understand FAMID
  • getting the graphics working
  • Make a graph of all three groups (pop, discordant DZ and discordant MZ).
  • Building in lme code
  • Compute Bwithin, Bbetween (and CIs) vialme() with random intercept for FAMID + control intrapair-mean.
  • Improve graphics
  • In the help, show user the model used, with fixed and random effects formulae.
  • Show user all "working results": i.e., print out the 'lme' models (use umxAPA)

Refs

  • 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
  • Begg, M. D., & Parides, M. K. (2003). Separation of individual-level and cluster-level covariate effects in regression analysis of correlated data. Stat Med, 22(16), 2591-2602. doi:10.1002/sim.1524

discordant_causal_patterns

@tbates tbates added top5 marked as an active goal: close before working on other issues graphics/UI plot, tables, summary etc. Models New model types for umx labels Dec 27, 2021
@tbates tbates added this to the 2022 milestone Dec 27, 2021
@tbates tbates self-assigned this Dec 27, 2021
@tbates tbates added this to To do in graphics via automation Dec 27, 2021
@tbates tbates added this to To do in new models via automation Dec 27, 2021
@tbates tbates changed the title implement umxTwinDiffs discordant twin test of causation implement umxDiscTwin discordant twin test of causation Dec 28, 2021
@tbates tbates closed this as completed Dec 28, 2021
graphics automation moved this from To do to Done Dec 28, 2021
new models automation moved this from To do to Done Dec 28, 2021
@tbates tbates reopened this Jan 3, 2022
graphics automation moved this from Done to In progress Jan 3, 2022
new models automation moved this from Done to In progress Jan 3, 2022
@tbates
Copy link
Owner Author

tbates commented Jan 4, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
graphics/UI plot, tables, summary etc. Models New model types for umx top5 marked as an active goal: close before working on other issues
Projects
graphics
  
In progress
new models
  
In progress
Development

No branches or pull requests

1 participant