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.