Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
fensorechase committed Jan 30, 2024
1 parent 3bc42da commit 2553370
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ Load Libraries:
.
├── AHRQ_pipeline
│ ├── compress_pharma.py
│ └── merge_AHRQ.Rmd
└── Data
│ ├── merge_AHRQ.Rmd
│ ├── gp_zipdata.json
│ └── fsq_zipdata.json
└── Data: _download from OneDrive_
├── AHRQ
│ ├── COUNTY
│ ├── TRACT
Expand All @@ -27,22 +29,17 @@ Load Libraries:
```

## Summary of functionality:
1. merge_AHRQ.Rmd: reads all available years of AHRQ SDOH data at ZIP code level. Generates summary plots, and includes template to merge SODH with patient data by ZIP code, year.
2. compress_pharma.py: reads Georgia pharmacy locations, and generates summary statistics by writing a json file with zip codes (key) and the number of pharmacies in that zip code (value).

### Load Data:
- Load patient data from a CSV file. (select your desired geographic level & years from AHRQ SDOHD).
- Load years of AHRQ SDOH data from CSV files.
- Load a CSV file containing feature names for AHRQ SDOH variables.

### Preprocess AHRQ Data:
- Merge AHRQ data from multiple years into a single data frame.
- Pad ZIP codes and STATEFIPS codes with leading zeros for consistency.
- Optionally perform imputation for missing values.

### Merge Data:
### Merge Data: recommended approaches for merging this SDOH data with patient data.
Merge the preprocessed AHRQ data with patient data using crosswalk variables:
STATEFIPS
ZIPCODE
YEAR
- STATEFIPS
- ZIPCODE
- YEAR
Merge the Georgia pharmacy location data with patient data using crosswalk variables:
- zipcode
- can optionally select either 'gp' or 'fsq' as the data source for Georgia pharmacy location data (see gp_zipdata.json, fsq_zipdata.json), or use both sources combined (

## The AHRQ SDOHD data used in this notebook can be accessed from the following link:
- AHRQ SDOHD: https://www.ahrq.gov/sdoh/data-analytics/sdoh-data.html#download
Expand Down

0 comments on commit 2553370

Please sign in to comment.