A Shiny web app to find out how much medical procedures cost in your state.

Today the front page of the Huffington Post featured the new data available from the CMS that shows the cost of many popular procedures broken down by hospital. We here at Simply Statistics think you should be able to explore these data more easily. So we asked John Muschelli to help us build a Shiny App that allows you to interact with these data. You can choose your state and your procedure and see how much the procedure costs at hospitals in your state. It takes a second to load because it is a lot of data....

Here is the link the app. 

Here are some screenshots for intracranial hemmhorage for the US and for Idaho.

Screen Shot 2013-05-08 at 4.57.56 PMScreen Shot 2013-05-08 at 4.58.09 PM\

The R code is here if you want to tweak/modify.

This entry was posted in Uncategorized and tagged , , , , . Bookmark the permalink.
  • http://bit.ly/ZpOeeR L. Collado Torres

    NIce use of GoogleVis + Shiny + relevant data!

  • Jean

    The app doesn't seem to work for me. I've tried it on chrome and firefox. I get the drop down menus, but no map.

    • http://bit.ly/ZpOeeR L. Collado Torres

      It's working for me right now in Chrome. Hm..

      • Jean

        Working for me now, too. Excellent.

  • http://twitter.com/StrictlyStat John Muschelli

    If the app doesn't work, I suggest trying to refresh. Also, we've found some people have had problems that seem to be tied into Glimmer, which you can see using the Console (Chrome: View -> Developer -> Javascript Console, under Console tab), (Safari: Develop -> Show Error Console), (Firefox: Tools -> Web Developer -> Web Console), where you get a websocket error from Glimmer.

    There has been some weird behavior that the page did not load automatically, but when the page was refreshed, loaded correctly. This is likely due to the fact that we used uiOutput() from Shiny to dynamically update the UI, which seems to bootstrap the process around, which may need some initialization for Shiny. I haven't found a consistent pattern though.

  • Kendra James

    Very cool. Is there a way to make the dropdown list of procedures either sortable or searchable by a keyword, or at least list them in alphabetical order instead by the numerical code?

    • http://twitter.com/StrictlyStat John Muschelli

      So you can now search for a regular expressions/kewords (using grep in R) for patterns and that will subset the procedures.

  • usinoz

    Not to detract from the work that was done, but could you use an appropriate map projection for this. Sorry, I don't mean to be nitpicky.

  • paulsef11

    Would love to see this crossed with how the hospitals rank in terms of procedure success rates. Who has the best rate for the lowest cost?

  • Vivek Patil

    Jeff, Thanks for that data analysis class.I was one of over 100k students there. I developed another shiny app with this data, but focusing specifically on my city. I've discussed that along with some other analysis of this data at: http://analyticsandvisualization.blogspot.com/