Course Project: Shiny Application and Reproducible Pitch

Reem Soliman

May 16, 2017

Overview

This presentation was built as a part of Developing Data Products Course

The Shiny Application, as the first part of the project is availble at https://reemsoliman.shinyapps.io/DDP_Week4Assignment/

The ui.R, server.R and the data csv files are available at https://github.com/ReemSoliman/DDP_Shiny_App

Web Application functionality

This Application predicts Maryland state Infants Mortality and Deaths for years 2016 to 2020 based on the data availble from the years 1919 to 2015.
The side panel contains the following inputs
1- Race select: the user chooses White, Black or Both.
2- Death/ Mortality select: the user chooese to see the Mortality or Deaths data.
3- Submit button.

The Main Panel has two tabs
1- The Historical Data tab: contains a plot of the historical data based on the user choices from the side panel
2- The Prediction tab: contains a table of prediction mean for the years between 2016 - 2020 and a plot of the prediction, aslo based on user choices from the side pandel.

The Dataset Exploration

##       Year      InfantMortalityRateTotal InfantMortalityRateWhite
##  Min.   :1919   Min.   :  6.30           Min.   : 4.00           
##  1st Qu.:1943   1st Qu.:  9.80           1st Qu.: 6.70           
##  Median :1967   Median : 22.20           Median :19.10           
##  Mean   :1967   Mean   : 31.38           Mean   :25.95           
##  3rd Qu.:1991   3rd Qu.: 42.90           3rd Qu.:36.50           
##  Max.   :2015   Max.   :105.10           Max.   :92.20           
##  InfantMortalityRateBlack NumberOfInfantDeathsTotal
##  Min.   : 10.30           Min.   : 458             
##  1st Qu.: 16.90           1st Qu.: 746             
##  Median : 33.60           Median :1473             
##  Mean   : 50.45           Mean   :1451             
##  3rd Qu.: 71.40           3rd Qu.:1946             
##  Max.   :163.60           Max.   :3785             
##  NumberOfInfantDeathsWhite NumberOfInfantDeathsBlack
##  Min.   : 170.0            Min.   : 250.0           
##  1st Qu.: 337.0            1st Qu.: 353.0           
##  Median : 954.0            Median : 508.0           
##  Mean   : 906.8            Mean   : 536.1           
##  3rd Qu.:1273.0            3rd Qu.: 683.0           
##  Max.   :2667.0            Max.   :1118.0

Plots

Marylnd Infants Total Mortality Rates from the years 1919 - 2015

WE can notice that the mortality rate going down.

Marylnd Infants Total Deaths Numbers from the years 1919 - 2015

The deaths number is going down too.

Forcasting for the years 2016 - 2020

Mortality Rates

##      Point Forecast      Lo 80    Hi 80      Lo 95    Hi 95
## 2016       6.685671  3.1701780 10.20116  1.3091885 12.06215
## 2017       6.685671  1.8940193 11.47732 -0.6425278 14.01387
## 2018       6.685671  0.8924714 12.47887 -2.1742631 15.54560
## 2019       6.685671  0.0401916 13.33115 -3.4777126 16.84905
## 2020       6.685671 -0.7145744 14.08592 -4.6320276 18.00337

Deaths Numbers

##      Point Forecast    Lo 80    Hi 80    Lo 95     Hi 95
## 2016       490.9992 341.5197 640.4788 262.3900  719.6085
## 2017       490.9992 279.6086 702.3899 167.7051  814.2934
## 2018       490.9992 232.1018 749.8967  95.0497  886.9488
## 2019       490.9992 192.0514 789.9471  33.7980  948.2005
## 2020       490.9992 156.7663 825.2322 -20.1660 1002.1645