Statistical Code

Code

The wide array of topics covered by our research team requires us to use a variety of statistical methods and models to analyze the different questions we pose. The Center for Open Science encourages transparency in materials and practices. Here we provide a repository of statistical code used to create and analyze our longitudinal data on genes, environment, health and behavior.

Caspi, Houts et al. (2023). The general factor of psychopathology (p): Choosing among competing models and interpreting p. Clinical Psychological Science. Code is available here.

Caspi, Houts et al.  (2024).  The high volume of mental-health conditions in primary care: Nationwide analysis of 350 million patient encounters. Nature Mental Health. SAS syntax for analyses is available here.  Code to redact small cells per Norwegian regulation is available here.  Code to create plots used in this paper is available here.