U.S. Cancer Research & R Shiny Application

Posted on Aug 12, 2019

The skills we demoed here can be learned through taking Data Science with Machine Learning bootcamp with NYC Data Science Academy.

Introduction

My career aspiration is to connect medical risk and treatment information from research facilities with individuals at risk and medical professionals. With that in mind, I wanted to build on my WebMD analysis with a more engaging form of research and insights for the medical community. I decided to extract general cancer diagnoses incidents in the United States from 1999 to 2015. 

When I began researching, I was disappointed to find very few dynamic and visually friendly resources pertaining to demographics and regions for such a widespread condition. I realized there is a real need for a dynamic application that could be used by medical researchers, hospital management, and potential cancer patients to make informed decisions around this terrible disease and hopefully aid the resource and information allocation for the public and treatment organizations. That's why I decided to build one for this project.

Purpose

I wanted to create an application that can easily identify trends associated with cancer diagnoses in the U.S. pertaining to demographic and geographic attributes. Are there patterns in Cancer diagnoses in gender, race, or age? Are there certain states that have proportionally more diagnoses than others? Is the rate at which cancer patients are being diagnosed increasing against the population growth of the U.S.?

Cancer research centers (i.e. Susan G Komen Foundation, the CDC, etc.), hospitals, and people at risk for cancer should have information that will enable them to make important decisions about where to allocate resources, locate vital help or information, or understand their disposition of risk for getting cancer. Unfortunately federal programs make information available with only limited access or with low resolution and diversity of graphical representation, making it difficult for these stakeholders to readily find the information they seek. 

Cancer Statistics in the U.S.

Cancer is the second leading cause of death in the U.S. (to Heart Disease), with more than 1.7 million diagnoses in 2018 and over 600k deaths (Source: Cancer.gov). The Centers for Disease Control and Prevention (CDC) has collected data on incidents of cancer diagnoses in the U.S. uniformly since 1999. The United States Cancer Statistics (USCS) are the official federal registries for cancer incidents collected, maintained, and distributed by the CDC. Data is collected and shown herein as the variables listed below.  For more information on the CDC and USCS, or to inspect/extract additional information, click here.

Features:

  • State
  • Year
  • Age Group
  • Gender
  • Race
  • Cancer Diagnosis Count

*Note: Although there are more than 100 types of cancer known and available in the USCS, this application features only the generalized cancer counts. I intend to optimize this application to include all specific forms of cancer in future work.

R Shiny Dashboard

I used the Shiny Dashboard library in R to build my application. As the data could only be extracted from a low-capacity online reporting tool, I first had to extract numerous .txt files; clean, parse, and convert types in the raw data; and merge into one uniform, cleaned dataset in .csv format. I then read this data into RStudio, began exploring and visualizing in aggregate, and lastly built dynamic and filterable tabs in a ui.R, server.R, and global.R to showcase many spatial and demographic distributions of cancer diagnoses.

I used Google’s gVis library for geographical mapping, ggplot2 for gender, race, age, and gender distributions, and the VCD library for a mosaic plot across most features. The application design is meant to be highly interactive with as many filterable capabilities as possible; again, with the goal of serving a wealth of vital information to hospitals and research centers for resource allocation. To see the app for yourself, click here!

Analysis & Insights

- QUESTION 1: At what age are people most likely to be diagnosed with Cancer?

- ANSWER 1: Most people are diagnosed with cancer between ages 50 and 85. The peak age group for diagnosis is age 65.

- QUESTION 2: Are there any races that are diagnosed more than others?

- ANSWER 2: Roughly 90% of people in the U.S. diagnosed with Cancer are caucasian, followed by roughly 8% African-American. This is compared to the roughly 77% population of caucasians and 13% of African-Americans living in the U.S.

- QUESTION 3: Are cancer diagnoses increasing year-over-year?

- ANSWER 3: Diagnoses of cancer are rising by roughly 2% each year from 1999 to 2015.  The average annual increase in population in the same period is 0.9%.

- QUESTION 4: Is one gender diagnosed more than the other? Any difference in ages most commonly diagnosed between genders?

- ANSWER 4: There appears to be no difference in diagnosis by gender, nor by distribution of age diagnosed against gender.

- QUESTION 5: Which States have more/less cancer diagnoses?

- ANSWER 5: The amount of cancer diagnoses per state generally tends to follow the amount of population living in that state.  The one notable exception is Texas where there are proportionately fewer diagnoses than population compared to other states.

- QUESTION 6: Are there differences in the age different races are diagnosed?

- ANSWER 6: Caucasian and African-American, while roughly comprising of 98% of diagnosed people in the U.S., tend to be diagnosed at an older age (median age 55) as compared to Asian/Pacific (median age 35), Other (median age 35), and Native Americans (median age 25).

Future Work

  • Optimize Shiny App by reducing duplication in code and consolidating to global.R.
  • Create more interaction between Home page, allowing users to link directly to visualizations from the main page outside of the left menu.
  • Extract statistical inference and statistical hypothesis testing to the Race and Age demographics to validate the significance in Race and Age groups observed in the Analysis section.
  • Expand the scope of the application to include all specific types of Cancer, other conditions and diseases publicly available (via CDC), and all territories globally.
  • Adjust axis labels on Mosaic chart for less clutter. Test accuracy of groupings.  Among findings I'd like to check is that the 90% caucasian. From other analysis does not appear consistent with this chart.
  • Create Reactive Functions that disable filters without underlying data associated to appear.
  • Research and validate accuracy of source (CDC) Data. Coordinate collaborations with CDC to add a visual layer to their medical condition records.

Thank you for reading! If you'd like to see this project on my github, feel free to have a look here. To see the actual R Shiny app, click here.

About Author

Eric Meyers

Eric is a data scientist with 9+ years in advanced analytics, data management, and data science experience across the music, media, luxury automotive, government, entertainment, and health fields. Most recently, Eric is currently a Data Scientist, III at...
View all posts by Eric Meyers >

Related Articles

Leave a Comment

Google September 29, 2021
Google The time to read or visit the material or websites we've linked to below.
Google March 16, 2021
Google Just beneath, are numerous completely not connected sites to ours, even so, they are certainly really worth going over.
Google March 3, 2021
Google Although internet sites we backlink to below are considerably not connected to ours, we really feel they're in fact worth a go through, so have a look.
CBD For Dogs December 19, 2020
CBD For Dogs [...]below you will come across the link to some web pages that we believe you should visit[...]
Google November 15, 2020
Google We prefer to honor a lot of other net sites around the net, even if they aren’t linked to us, by linking to them. Under are some webpages worth checking out.
Google November 15, 2020
Google Here is a good Blog You might Uncover Intriguing that we encourage you to visit.
Backlink August 28, 2020
Backlink [...]here are some hyperlinks to web sites that we link to since we believe they may be worth visiting[...]
MKsOrb August 26, 2020
MKsOrb [...]Every when inside a when we pick blogs that we read. Listed beneath would be the most up-to-date sites that we select [...]
OnHax August 19, 2020
OnHax [...]check beneath, are some totally unrelated web sites to ours, however, they are most trustworthy sources that we use[...]
mksorb.com August 5, 2020
mksorb.com [...]always a huge fan of linking to bloggers that I really like but don’t get a great deal of link really like from[...]
mksorb.com July 30, 2020
mksorb.com [...]check below, are some absolutely unrelated web sites to ours, nevertheless, they are most trustworthy sources that we use[...]
cbd oil for cats July 9, 2020
cbd oil for cats [...]The information talked about inside the write-up are a number of the top accessible [...]

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