Skip to content

Commit

Permalink
Merge branch 'main' of github.com:fensorechase/AHRQ_pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
fensorechase committed Jan 29, 2024
2 parents 38a2992 + dfa2434 commit f7f92a5
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,33 @@
# AHRQ_pipeline
# AHRQ_pipeline

## Key Steps
Load Libraries:
- caret
- data.table
- dplyr
- sets
- scales
- tidyr
- stringr

## Summary of functionality:

### 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 the preprocessed AHRQ data with patient data using crosswalk variables:
STATEFIPS
ZIPCODE
YEAR

## 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

0 comments on commit f7f92a5

Please sign in to comment.