This is the main page hosting the code repository and replication guide for "Psychiatric Symptoms, Cognition, and Symptom Severity in Children", previously titled "The relationship between psychiatric symptoms and cognition depends on symptom severity". For clarity, analyses and replication guides are broken up into 3 sections. In the spirit of useful reductionism, general cognition is referred to as g throughout, and general psychopathology is referred to as p throughout.
For each step, a detailed walk-through is linked.
Step 1 is sample construction. This step takes NDAR resources, formats them, checks/omits missing data, produces some derivative-measures (g, parent P). Supplementary analyses include establishing functional equivalence of the metrics we use with that obtained in prior literature.
Step 2 corresponds to figure 1, and executes bootstrap iterations to reveal the linear, symptom-tertile-dependent relationships between g and symptoms.
Step 3 corresponds to figure 2, and executes bootstraps to interrogate nonlinear associations formally rather than by deriving separate linear models across the mental health spectrum.
Our manuscript can be found here
Many thanks to the ABCD families and study teams.