A package that create analysis ready datasets from Medicare data. The code were designed specifically for UofM IHPI Medicare data format. however, it can also be generalized to other medicare data format. This package is used at MEDLab at the department of surgery, University of Michigan
The goal of medicareR is to make standardized medicare datasets across years including:
- MBSF
- MedPAR
- Carrier Line
- Carrier Claim
You can install medicareR from GitHub with devtools:
devtools::install_github("https://github.com/UMCSTaR/medicareR")
# filter procedures
define_proc_by_cpt <- readr::read_csv(paste0("your-data-path1", "cpt_ecs_map.csv"))
analytic_cpt = medicareR::procedure_selection(
std_data_root = "your-data-path2",
prof_codes_folder = "prof_clm",
cpt_map = define_proc_by_cpt
)