Long Covid and PASC Studyathon - Study package

Package overview

This package contains all the required code to run the first package for the study on Long Covid and PASC taking place in Oxford, April 2023.

Package extraction

You can clone this repository in your console like so, from cmd:

git clone git@github.com:oxford-pharmacoepi/LongCovidStudyathon_W1.git

or directly download it as a .zip file into your computer, from the menu above.

How to use it

You should only need to use the file CodetoRun.R in the main folder. First fill all the ... with the information from your database, and change the required variables (dates, names and database information availability) to suit your particular needs.

When you run that script, the whole code will start running. It will first instantiate the cohorts and then calculate the incidences. If you re-run the code and the cohorts are already instantiated, you can set instantiateCohorts = FALSE so as to not repeat long calculations.

Results

All the results will be zipped into a folder called [your database name]_Results.