/617_eol_project

End of Life project (2019/20)

Primary LanguageRGNU General Public License v3.0GPL-3.0

617_eol_project

This project contains the R code to generate the Health service use in the last two years of life reports.

This code must be run on the NCDR data science server, and you must have access to the database on the NCDR Sql Server.

In order to run this code, you first need to clone the repository in RStudio.

Once you have cloned the repository, first run renv::install() to set up the environment. Then, run the file get_data/get_data.R to get the data for the reports.

Once this data has been created, the entire report is stored in eol_report.Rmd. The final, published reports include extra text and analysis that was stitched in manually after.