Smith DM, Loughnan R, Friedman NP, Parekh P, Frei O, Thompson WK, Andreassen OA, Neale M, Jernigan TL, Dale AM. Heritability Estimation of Cognitive Phenotypes in the ABCD Study® Using Mixed Models. Behav Genet. 2023 May;53(3):169-188. doi: 10.1007/s10519-023-10141-2. Epub 2023 Apr 7. PMID: 37024669; PMCID: PMC10154273.
This repository contains the code used to run all analyses in the manuscript. A description of each file is below, listed in the recommended order for running the code.
Collects the ABCD data into a set of dataframes to be used as the dependent variables in all models. Several files are saved out (because some models use different samples, adjust for all covariates versus just age and sex, etc).
Runs the ACE model in OpenMx and saves the estimates for A, C, and E.
Creates table of demographic information.
Creates design matrix to pass to FEMA. For this manuscript the design matrix is "empty," i.e. contains no fixed effects.
Creates matrix of "assigned" genetic relatedness values.
Script that creates several models to run in FEMA then calls FEMA helper functions (available at https://github.com/cmig-research-group/cmig_tools)
Helper functions for OpenMx analysis.
Code for creating the plots shown in the manuscript.