Skip to content

annehebert/OpioidsYLL

Repository files navigation

OpioidsYLL

Calculating the Years of Life Lost to opioid-related deaths in the US.

Work done at Johns Hopkins University, by Alison L. Hill and Anne H. Hébert

Summary

The opioid crisis is a public health emergency in the US, with opioid overdose deaths increasing each year. Here we use the metric of years of life lost to characterize the burden of the opioid epidemic across demographic groups. We estimate that nearly 3 million years of life were lost to the opioid crisis in 2021 alone, and that the US population's life expectancy at birth was reduced by 0.65 years. We found that the crisis worsened in almost all 50 states during this time, and that the demographics of those most impacted by the opioid epidemic are shifting. People of color are now experiencing the high years of life lost per capita and the largest decrease in life expectancy.

Repo contents

This repository contains R code generating the results in our paper Increasing burden of opioid overdose mortality in the United States: Years of life lost by age, race, and state from 2019-2021. The code in this repository allows for calculating the years of life lost to the opioid-related deaths in the US, as well as the resulting reduction in life expectancy.

Files

  • functions.R : this R script contains functions used in YearsLifeLost.R and in YLL_state.R
  • YearsLifeLost.R : this R script contains code calculating the years of life lost by demographic group
  • YLL_state.R : this R script contains code calculating the years of life lost by state
  • data_files_into.txt : this text file contains instructions for downloading each of the data files used in the above R scripts

Data

All data used in this work are publicly available. The data tracking yearly death counts is from the CDC WONDER Multiple Cause of Death database. The lifetables are from the National Center for Health Statistics.

Info on the specific data files used, as well as download instructions, can be found in the data_files_info.txt.

Related

These results can be found on our interactive web app, which visualizes metrics of the opioid crisis.

About

Calculating the Years of Life Lost to opioid-related deaths in the US

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages