Git Product home page Git Product logo

hcompare-best-rankhospital-rankall's Introduction

Summary:

These functions are designed to rank US hospitals using any version of two particular .csv files provided by the Hospital Compare database (http://hospitalcompare.hhs.gov). HCompare is operated by the US Dept of Health & Human Services to "provide data about the quality of care at over 4,000 Medicare-certified hospitals in the US." The two .csv files (outcome-of-care-measures.csv & hospital-data.csv) report 30-day mortality and readmission rates for three variables (heart attacks, heart failure, and pneumonia) and contain identifying information for each hospital.

--

Repository contents:

best.R : best(state, outcome) - Reads outcome-of-care-measures.csv and returns a character vector with the name of the hospital that has the best (i.e. lowest) 30-day mortality rate for the specified outcome in that state.

rankhospital.R : rankhospital(state, outcome, num="best") - Reads outcome-of-care-measures.csv and returns a character containing the name of the hospital in the given state that has the given ranking for the given outcome.

rankall.R : rankall(outcome, num="best") - Reads outcome-of-care-measures.csv and returns a 2-column data frame containing the hospitals in each state that have the ranking specified by "num" for the given outcome.

outcome-of-care-measures.csv : 30-day mortality and readmission rates for heart attacks, heart failure, and pneumonia

hospital-data.csv : Hospital ID information

key for csv files.txt : codebook for outcome-of-care-measures.csv and hospital-data.csv

Hospital_Revsed_flatfiles.pdf : master codebook for ALL files in the HCompare database, most of which are not relevant to these functions

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.