Giter Site home page Giter Site logo

cost_sharing's Introduction

The Health Costs of Cost-Sharing

Authors: Amitabh Chandra, Evan Flack, Ziad Obermeyer

Contact: Evan Flack ([email protected])

Code Directories

  • read_in: Scripts to read-in the raw Medicare .sas files, subsets/formats variables

  • 00_pre_process: Scripts to start other scripts, define functions/plot themes

  • 01_sample: Scripts to create the main analytic sample, along with prediction and falsification samples

  • 02_features: Scripts to create features used in the analysis, such as mortality outcomes and initial-90 days spending

  • 03_model

    • 01_prediction: Scripts used to predict risk outcomes in the prediction sample of dual eligible beneficiaries 66+
    • 02_iv: Scripts to make tables/figures for the IV analysis in the main text and appendix
  • sup_data: Data used in addition to the Medicare claims stored on the NBER aging servers

Data

This project used Medicare claims/administrative data made available though a data use agreement (DUA) with the Center for Medicare and Medicaid Services (CMS). It is stored on the NBER aging servers. The raw data is stored in SAS files; the aging servers are set up such that only a few are able to run SAS programs. Because of this, the analysis cannot be run with one shell script. Instead, there are a series of shell scripts, alternating between .SAS, and .R programs.

Workflow

First, you will need to set the directories where you would like data to be stored. This is done in sas_librefs.sas and 00_pre_process/start_script.R. The "lib_base_data" object from start_script.R must be the same as both "em" and "exp_dir" in sas_librefs.sas. The "lib_base" object in 00_pre_process/start_script.R should be the root directory of the scripts. Also move the data stored in sup_data to the "lib_base_data" directory.

  • read_in/00_run_sas_scripts.sh
  • 01_sample/00a_run_sas_scripts.sh
  • 01_sample/00b_run_r_scripts.sh
  • 01_sample/00c_run_sas_scripts.sh
  • 02_features/get_drug_info/00_get_drug_info.sh
  • 02_features/00_run_r_scripts.sh
  • 03_model/01_prediction/00_predict_risk.sh
  • 03_model/02_iv/00_run_iv_scripts.sh

cost_sharing's People

Contributors

evanjflack avatar

Watchers

 avatar

Forkers

edjeeongithub

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.