Skip to content

Code and Data respository of 'Prescriptions and Reimbursement of Glucagon Products for Severe Hypoglycemia in Medicaid'

License

Notifications You must be signed in to change notification settings

ryan-odea/Glucagon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Utilization and Reimbursement of Glucagon Products for Severe Hypoglycemia in Medicaid: 2012-2023

About

This serves as the code (and some data) repository for Prescriptions and Reimbursement of Glucagon Products for Severe Hypoglycemia in Medicaid authored by Noah M. Feder, Ryan O'Dea, Dr. Margaret Zupa, and Dr. Jing Luo.

Using the provided Rscript and Data

Within this repository, you will find the R script glucagon.R which will:

  1. Scrape Medicaid State Drug Utilization Data
  2. Create cleaned and aggregated data
    1. Total aggregated table from scrape
    2. Market Share - the aggregated table of brand market share percentages by year
    3. NDC to Brand Key - decoder for NDC codes
    4. Yearly Medicaid Reimbursement - yearly monetary reimbursements for medicaid, corrected to 2023 dollars through the Federal Reserve Bank of Minneapolis CPI
    5. Total scripts per year
  3. Plot figures

To Note:

Data from 2022 was originally scraped in August of 2023. Since then it appears that approximately half of the data has gone missing. In similar fashion, the scraping mechanism does not work with 2023 data due to API changes. We have included a Data.zip file which contains both of these datasets for maximum reproducibility.
The rest of the data was pulled 7/11/2024 and can be accessed upon request to the corresponding author, but the provided script should allow reproducibility for all other years within the study.

About

Code and Data respository of 'Prescriptions and Reimbursement of Glucagon Products for Severe Hypoglycemia in Medicaid'

Topics

Resources

License

Stars

Watchers

Forks

Languages