Simulation code and R package used for manuscript "Use of genetic correlations to examine selection bias" (see citation below).
Within the manuscript, for one sample test we have used package psych
for Steiger and Bartlett's test. However there was an error in Jennrich, we have modified it in cortest_jenn.R
.
Folder R/Simulation code
provides R code for simulated data of each scenarios within our manuscript and supplementary materials.
Shapland, C. Y., Gkatzionis, A., Hemani, G., & Tilling, K. (2024). Use of genetic correlations to examine selection bias. Genetic Epidemiology, 1–14. https://doi.org/10.1002/gepi.22584