Common Mental Disorders – code available


In the interests of transparency and the sharing of work, the code for my recent project on common mental disorders and associated comorbidities is now available on GitHub. The project is still in progress, and so the code is subject to change. All coding was undetaken in R, using the CPRD dataset and linked HES data. The project makes extensive use of the data.table package in order to deal with the large datasets involved. The code can be found here:

The project was undertaken with Mai Stafford and Karen Hodgson at (and for) The Health Foundation.