- R files:
data.R,staticplot.R,shinyapp.R,model.R, andtextprocess.R - Folders:
data,images,presentation,Supporting_documents_researchdatacontains the unmodified data manipulated indata.R, text data from Congress.gov (MSP_congress.csv), as well as a link to the processed datasetdata_full.Rdata(with data from CMS, MassGIS, and the US Census Bureau).imagescontains plot and map outputs fromstaticplot.Ras well as a wordcloud output fromtextprocess.R.presentationcontains the Quarto slide materials from my in-class presentation.Supporting_documents_researchincludes three publications I leaned on for context and potential research methods, from AARP, MassHealth (the Massachusetts Medicaid program), and Gina Li.
- Writeup: writeup.md
Medicare Savings Programs (MSP) lower health care costs paid by low-income seniors. By enrolling in a Medicare Savings Program, eligible seniors immediately have their Medicare Part B premiums paid for them (~ $2,000 per year) and receive the Social Security Administration's Part D Extra Help benefit for prescription costs (~ $5,300 value per year).
States can set their own MSP eligibility criteria beyond federal baselines. In Massachusetts, the income eligibility threshold and asset limit for MSP were significantly raised in 2020 and again in 2023.
My project seeks to show where in Massachusetts expanded eligibility led to greater enrollment in MSP. This information would be valuable to policymakers, advocates, and seniors themselves who are organizing to improve health care assistance. This project creates plots, maps, and Shiny app tools to illuminate descriptive relationships between demographics, enrollment, and policy change. Data sources for these outputs are Center for Medicare and Medicaid Services (CMS) enrollment data, US Census demographic data, and Massachusetts county-level shapefiles.
I am also interested in learning more about how researchers, policymakers, and others view MSP as an intervention to improve health outcomes vs. economic conditions for seniors. That question is the basis of this project's text analysis, which uses bill summaries from Congress.gov to identify common terminology used at the federal level to describe policymaking around Medicare Savings Programs.
- The
data.Rfile combines the primary data sources into a usable format for generating the plots, maps, and Shiny tools. The combined dataset generated by data.R can be found in the data folder, nameddata_full.RData. To generate this dataset using data.R, follow these steps:- In line 57, edit
file_pathto local directory containing CMS data (which can be downloaded from thedatafolder or https://www.cms.gov/data-research/research/statistical-resources-dually-eligible-beneficiaries/mmco-statistical-analytic-reports) - For non-geographic analysis, export combined dataframe without shapefiles in line 80 for a smaller file size.
- In line 84, edit
zippathto local directory containing MassGIS shapefiles (which can be downloaded from thedatafolder or https://www.mass.gov/info-details/massgis-data-counties) - If using tidycensus package to access US Census API, proceed with lines 102-168.
- In line 102, insert your own Census API key if using tidycensus package for the first time.
- If not using API, access archived Census data in
datafolder by editingdirectoryin line 191 and running lines 191-193 before proceeding to lines 178-188.
- Line 188 produces the processed dataset,
data_full.RDatawhich can also be downloaded from Google Drive here.
- In line 57, edit
- Once
data_full.Rdatais on your machine, proceed tostaticplot.Rorshinyapp.Rto create figures and tools.staticplot.Rgeneratesplot1_enrollment_time.pngandplot2_enrollment_map.pngwhich can be found in theimagesfolder.- In line 5, edit
directoryto local directory containingdata_full.Rdata.
- In line 5, edit
shinyapp.Rgenerates two Shiny apps: one for enrollment data plotted over time, and one for demographic data mapped alongside enrollment change after the January 2020 eligibility expansion, also mapped.- For App 1: In line 7, edit
directoryto local directory containingdata_full.Rdata. - For App 2: In line 94, edit
directoryto local directory containingdata_full.Rdata.
- For App 1: In line 7, edit
model.Rfits a simple linear model to MSP enrollment data, using a few demographic measures.- In line 3, edit
directoryto local directory containingdata_full.Rdata. - The independent variables used:
- ps1: whether or not the expanded eligibility policy was in place (pre-/post-Jan. 2020)
- pop: total county population, scaled to 100,000s
- nw: nonwhite percentage of county population
- In line 3, edit
textprocess.Rgenerates a wordcloud of the most frequent terms used in bill summaries from U.S. House bills pertaining to MSP.- In line 6, edit
directoryto local directory containingMSP_congress.csv.
- In line 6, edit