Skip to content

fensorechase/AHRQ_pipeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AHRQ_pipeline

Key Steps

Load Libraries:

  • caret
  • data.table
  • dplyr
  • sets
  • scales
  • tidyr
  • stringr

Folder Structure

  • After downloading Data folder from specified OneDrive: . ├── AHRQ_pipeline │ ├── compress_pharma.py │ └── merge_AHRQ.Rmd └── Data ├── AHRQ │ ├── COUNTY │ ├── TRACT │ └── ZIP └── GA_Pharmacy_Data_gp_fsq

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:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages