Skip to content

ejholmberg/DAP2-final-holmberg

 
 

Repository files navigation

README

DAP 2 Fall 2024 - Final Project

Repository Contents

  • R files: data.R, staticplot.R, shinyapp.R, model.R, and textprocess.R
  • Folders: data, images, presentation, Supporting_documents_research
    • data contains the unmodified data manipulated in data.R, text data from Congress.gov (MSP_congress.csv), as well as a link to the processed dataset data_full.Rdata (with data from CMS, MassGIS, and the US Census Bureau).
    • images contains plot and map outputs from staticplot.R as well as a wordcloud output from textprocess.R.
    • presentation contains the Quarto slide materials from my in-class presentation.
    • Supporting_documents_research includes three publications I leaned on for context and potential research methods, from AARP, MassHealth (the Massachusetts Medicaid program), and Gina Li.
  • Writeup: writeup.md

Project Overview

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.

Reproduction Instructions

  • The data.R file 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, named data_full.RData. To generate this dataset using data.R, follow these steps:
  • Once data_full.Rdata is on your machine, proceed to staticplot.R or shinyapp.R to create figures and tools.
    • staticplot.R generates plot1_enrollment_time.png and plot2_enrollment_map.png which can be found in the images folder.
      • In line 5, edit directory to local directory containing data_full.Rdata.
    • shinyapp.R generates 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 directory to local directory containing data_full.Rdata.
      • For App 2: In line 94, edit directory to local directory containing data_full.Rdata.
  • model.R fits a simple linear model to MSP enrollment data, using a few demographic measures.
    • In line 3, edit directory to local directory containing data_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
  • textprocess.R generates a wordcloud of the most frequent terms used in bill summaries from U.S. House bills pertaining to MSP.
    • In line 6, edit directory to local directory containing MSP_congress.csv.

About

Template for Final Project in PPHA 30536, Data and Programming in R 2. Current version: winter 2024.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 45.3%
  • HTML 35.4%
  • R 10.3%
  • CSS 9.0%