<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/hospital-infection-scores-r-shiny-app/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="https://www.stoltzmaniac.com/hospital-infection-scores-r-shiny-app/"> R-Projects – Stoltzmaniac</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<h2>Medicare Data – R Shiny App</h2>
<p>About two weeks ago I created an extremely rough version of an R Shiny Application surrounding Medicare data. Right after publishing the blog post, I received a lot of input for improvement and help from others.</p>
<p>Here’s a look a look at the latest version of the <a rel="nofollow" href="https://stoltzmaniac.shinyapps.io/medicare_data/" target="_blank">Medicare Shiny App</a>. This utilizes data.gov <a rel="nofollow" href="https://catalog.data.gov/dataset/healthcare-associated-infections-hospital-3ca5e" target="_blank">found here</a>.</p>
<p>I was traveling for two weeks and had very little time to do any work on it. After creating a <a rel="nofollow" href="https://github.com/stoltzmaniac/Medicare/tree/master/shinyApp" target="_blank">GitHub Repository</a> for it, the user <a rel="nofollow" href="https://github.com/ginberg" target="_blank">Ginberg</a> played a huge role in cleaning it up and adding a lot more functionality. I found it incredible that a complete stranger to me would put in such effort to something like this. In fact, he isn’t even a resident of the USA – so Medicare probably isn’t on his radar as often as it is for some of us. Fantastic generosity!</p>
<p>Ultimately, I will be looking to keep this project alive and grow it to fully utilize a lot more of the Medicare data available. The infections data set was very simple and easy to use, so I started off with it but there are a lot more tables listed on data.gov. The purpose of this application is to allow people who don’t want to spend time digging through tables to utilize the information available. This isn’t necessarily just for people seeking care to make a decision but this could perhaps be utilized for others doing research regarding hospitals in the US.</p>
<p>The R Shiny App allows you to filter by location and infection information. These are important in helping to actually find information on what you care about.</p>
<p>Three key tabs were created by (@Ginberg):</p>
<ul>
<li>Sorting hospitals by infection score</li>
<li>Maps of hospitals in the area</li>
<li>Data table of hospital data</li>
</ul>
<hr>
<h4>Sorting hospital data by score:</h4>
<ul>
<li>This is a tricky plot because “score” is different for each type of metric</li>
<li>Higher “scores” aren’t necessarily bad because they can be swayed by more heavily populated areas (or density)</li>
<li>Notice the use of plotly and its interactivity</li>
</ul>
<p><img alt="" src="https://i1.wp.com/www.stoltzmaniac.com/content/images/2017/05/blog_2_01.png?w=456&ssl=1" data-recalc-dims="1"></p>
<hr>
<h4>Map of the data:</h4>
<ul>
<li><span></span>Location of the hospitals is incredibly important if you happen to live in a certain area</li>
<li>The radius of the circle allows for easy identification of places with larger “scores”</li>
<li>Hovering and clicking the circle will display more information</li>
</ul>
<p><img alt="" src="https://i0.wp.com/www.stoltzmaniac.com/content/images/2017/05/blog_2_02.png?w=456&ssl=1" data-recalc-dims="1"></p>
<hr>
<h4>Displaying the data in table format:</h4>
<ul>
<li>This allows for visibility into the raw data that is populating the other tabs</li>
<li>It provides the ability to download a CSV or PDF file containing the relevant information</li>
<li>More information may be added such as the address and telephone number of the hospital – depending on the direction of the app</li>
</ul>
<p><img alt="" src="https://i1.wp.com/www.stoltzmaniac.com/content/images/2017/05/blog_2_03.png?w=456&ssl=1" data-recalc-dims="1"></p>
<p>Again, I want to give a big thanks to <a rel="nofollow" href="https://github.com/ginberg" target="_blank">Ginberg</a> for essentially creating 95% of what makes this app great!</p>
<p>Here’s the link to the <a rel="nofollow" href="https://stoltzmaniac.shinyapps.io/medicare_data/" target="_blank">Medicare Shiny App</a>.</p>
<p>You can find the code on my <a rel="nofollow" href="https://github.com/stoltzmaniac/Medicare" target="_blank">GitHub</a>.</p>
<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="https://www.stoltzmaniac.com/hospital-infection-scores-r-shiny-app/"> R-Projects – Stoltzmaniac</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img width="1" alt="" src="http://feeds.feedburner.com/~r/RBloggers/~4/BIzpAct1pco" height="1"></a></div>