Data Analysis on Opioid Death Rates Across USA

Posted on May 4, 2020
The skills the author demoed here can be learned through taking Data Science with Machine Learning bootcamp with NYC Data Science Academy.

Data Analysis on Opioid Death Rates Across USA

LinkedIn |Β Github |Β Shiny App

Introduction

Drug overdose has been a major crisis in the United States. According to data from CDC, Drug overdose was the leading cause of injury related death in USA in 2018; 70% of these overdose deaths involved some form of opioid.Β 

With my web application, I wanted to make an interactive tool to look at state level trends of drug overdose deaths from 2009 to 2018.Β 

The App

The name of this app is 'Opioid Death Analysis' and below is a walkthrough of what you can find in the app.Β 

  • Overview - This page has three graphs. The first graph shows the yearly trend of death rates for overdose and opioid going from 2009 to 2019. The second graph is a bar graph that is comparing overdose to opioid death rates over the 10 years. The last graph in the bottom is a box plot which is showing the distribution of the death rates for all 50 states from 2009 to 2018.
  • Interactive Graphs - This page is users to interact with the data. They have the option to pick year and state to see a customized graph. The first graph on this page is a bar plot of all 50 states death rates for a given year. The user can pick the year that they want to see the bar plot for. The second graph is a side by side comparison of overdose and opioid death rates. The user can pick 3 states and the graph will produce 3 line graphs for each death rate category. The last graph is a bar graph to see the death rate (overdose and opioid) for a particular state over 10 years. The user can pick a state and see its bar chart.Β 
  • Map Visualization - This page shows a heatmap across USA. The color bar shows death rate where high being darker color and vice versa. The user can pick a year and the death type (overdose or opioid) and the graph will produce a heatmap with the chosen criteria. There are also 4 infoboxes on the top right side that will show you the top twoΒ  states which have the highest overdose and opioid death rate for that year.Β 
  • Data Table - There you can find the data that was used to make the visualizations.Β 
  • About Project - This tab gives a small description about the work done.Β 
  • About Me - Here you can find information about ways you can reach me.Β 

Future Work

This app is still under development. For future work, I am looking into citywide and countywide data and I want to incorporate data points on age, ethnicity and income level.Β 

Data Cleaning

The raw data separated into columns by year and state. I used the Tidyverse packages (readr, tidyr, dplyr) to clean the data and combine all the year columns into one.Β  The graphs were made using ggplot2 library.Β 

About Dataset

The dataset was collected from Kaiser Family Foundation (KFF) website. KFF used CDC & the National Vital Statistics System to extract data from cause-of-death mortality files.Β 

About Author

Suborna Nath

Data Scientist with a background in biomedical research, passionate about problem-solving and uncovering actionable insights from data.
View all posts by Suborna Nath >

Leave a Comment

No comments found.

View Posts by Categories


Our Recent Popular Posts


View Posts by Tags

#python #trainwithnycdsa 2019 2020 Revenue 3-points agriculture air quality airbnb airline alcohol Alex Baransky algorithm alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus ames dataset ames housing dataset apartment rent API Application artist aws bank loans beautiful soup Best Bootcamp Best Data Science 2019 Best Data Science Bootcamp Best Data Science Bootcamp 2020 Best Ranked Big Data Book Launch Book-Signing bootcamp Bootcamp Alumni Bootcamp Prep boston safety Bundles cake recipe California Cancer Research capstone car price Career Career Day citibike classic cars classpass clustering Coding Course Demo Course Report covid 19 credit credit card crime frequency crops D3.js data data analysis Data Analyst data analytics data for tripadvisor reviews data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization database Deep Learning Demo Day Discount disney dplyr drug data e-commerce economy employee employee burnout employer networking environment feature engineering Finance Financial Data Science fitness studio Flask flight delay gbm Get Hired ggplot2 googleVis H20 Hadoop hallmark holiday movie happiness healthcare frauds higgs boson Hiring hiring partner events Hiring Partners hotels housing housing data housing predictions housing price hy-vee Income Industry Experts Injuries Instructor Blog Instructor Interview insurance italki Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter las vegas airport lasso regression Lead Data Scienctist Lead Data Scientist leaflet league linear regression Logistic Regression machine learning Maps market matplotlib Medical Research Meet the team meetup methal health miami beach movie music Napoli NBA netflix Networking neural network Neural networks New Courses NHL nlp NYC NYC Data Science nyc data science academy NYC Open Data nyc property NYCDSA NYCDSA Alumni Online Online Bootcamp Online Training Open Data painter pandas Part-time performance phoenix pollutants Portfolio Development precision measurement prediction Prework Programming public safety PwC python Python Data Analysis python machine learning python scrapy python web scraping python webscraping Python Workshop R R Data Analysis R language R Programming R Shiny r studio R Visualization R Workshop R-bloggers random forest Ranking recommendation recommendation system regression Remote remote data science bootcamp Scrapy scrapy visualization seaborn seafood type Selenium sentiment analysis sentiment classification Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau teachers team team performance TensorFlow Testimonial tf-idf Top Data Science Bootcamp Top manufacturing companies Transfers tweets twitter videos visualization wallstreet wallstreetbets web scraping Weekend Course What to expect whiskey whiskeyadvocate wildfire word cloud word2vec XGBoost yelp youtube trending ZORI