Skip to content

Repo containing the reproducible analytical pipeline used to create the quarterly suspected drug deaths in Scotland publication

Notifications You must be signed in to change notification settings

ScotGovAnalysis/suspected_drug_deaths

Repository files navigation

Suspected drug deaths in Scotland

This repository contains the reproducible analytical pipeline (RAP) used to create the quarterly Suspected Drug Deaths publication. The data is sourced from management information collected by Police Scotland, and a list of previous publications can be found here.

Running the RAP

Compiling the final document requires executing the following:

  1. When Police Scotland furnish Scottish Government with new data (i.e. every quarter) an updated .xlsx dataset must be saved into the Data folder
  2. Update the Readingdata function in the 2_Wrangling.R script (in the Mainfunctions folder) to reflect the dataset name you saved in Step 1
  3. In the README chunk of the Mainoutput.Rmd Markdown document, change the source call to whichever quarter it is. For example, if you are reporting on suspected drug deaths for Q3 – that is, July to September of a given year – the source will be "~/Q3_Functions.R". Note as well that chart titles will need to be modified as appropriate.

Methodological note

Classifying a death as drug-related is complex. In Scotland there are two different sets of statistics on the number of drug deaths. The suspected drug deaths reported here are classified as such based on an officer’s observations and initial enquiries at the scene of death. Note that these are NOT the Official Statistics published by the National Records of Scotland. Instead they are intended to provide an indicator of recent drug death trends in Scotland, to inform prevention and enforcement activities. More information on the methods can be found in the Background_doc.Rmd markdown file.

About

Repo containing the reproducible analytical pipeline used to create the quarterly suspected drug deaths in Scotland publication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages