This is the Rmarkdown code for Wray et al (2020) From Basic Science to Clinical Application of Polygenic Risk Scores A Primer. JAMA Psychiatry https://jamanetwork.com/journals/jamapsychiatry/fullarticle/2771079 and Murray et al (2020) Could Polygenic Risk Scores Be Useful in Psychiatry? JAMA Psychiatry https://jamanetwork.com/journals/jamapsychiatry/fullarticle/2771208