https://github.com/sam-k/compare-rx
Analysis of drug price variations between states. THInC 2019
https://github.com/sam-k/compare-rx
dataset drug-prices hackathon
Last synced: about 2 months ago
JSON representation
Analysis of drug price variations between states. THInC 2019
- Host: GitHub
- URL: https://github.com/sam-k/compare-rx
- Owner: sam-k
- Created: 2019-02-02T14:14:34.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-04T19:40:06.000Z (over 6 years ago)
- Last Synced: 2025-01-27T13:16:05.304Z (4 months ago)
- Topics: dataset, drug-prices, hackathon
- Language: R
- Homepage:
- Size: 2.44 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# compare-rx
Cleaning and preliminary analysis of state drug price data, to show variations in drug prices across different states.Created for the 2019 [Triangle Health Innovation Challenge](http://www.thincweekend.org/) (THInC), a medical hackathon hosted by Duke University.
## Data sources
- [State Drug Utilization Data](https://www.medicaid.gov/medicaid/prescription-drugs/state-drug-utilization-data) (SDUD), which documents the Medicaid Drug Rebate Program's reimbursements to drug manufacturers who dispense prescription drugs to Medicaid patients.
- [National Average Drug Acquisition Cost](https://www.medicaid.gov/medicaid/prescription-drugs/pharmacy-pricing/index.html) (NADAC), which posts weekly average acquisition costs of prescription drugs as reported by pharmacy surveys.## Data processing
### Cleaning data
- Reformat all columns and clean all drug names.
- Remove redacted entries from the SDUD dataset.
- Consolidate the SDUD dataset so that each drug corresponds to a single row.
- Consolidate the NADAC dataset to include only the most recent prices.### Merging data
- Merge the SDUD prices with the NADAC drug descriptions.
- Sort the dataset.## Preliminary data analysis
### Analysis
- Remove outliers (distance from median ≥ 4σ) that were likely from mis-entered entries.
- Identify drugs with the largest price differences between states.### Visualization
- Identify the top 5 drugs with the largest interstate price variations: Stelara, Neulasta, Simponi, Avonex, and Lupron Depot.
- Compare the highest-priced state with the lowest-priced for each drug.