Out of State Donors in New York State Elections

Introduction

This project will look at out of state contributions to candidates in New York state in the 2022 election cycle. I am interested in the frequency, size, and location of these donations.

For this project, I downloaded all financial disclosure reports in the 2022 election cycle from the New York State Board of Elections Office. To create the database of donors 14 individual files were combined using the rbind function, this is to account for the 7 report types across two years: General, January Periodic, July Periodic, March Periodic, Off-Cycle, Primary, and Special. At the start of this project, the files had already been downloaded, combined by year, and filtered to only include donations made by individuals.

# read in raw data
load("~/Downloads/X2021.Rdata")
load("~/Downloads/X2022.Rdata")

# cut down files to only relevant columns 

cycle_2022 <- rbind(X2021, X2022)
rm(X2021)
rm(X2022)

keeps <- c("Committee", "Year", "Donation_type", "First_name", "Middle_Initial",
           "Last_name", "Street_Address", "Town", "State", "Zip_code", "Country",
           "Donation_Method", "Donation_amount")


cycle_2022 <- cycle_2022 %>% 
  select(all_of(keeps))

# only want donations from outside of New York 
non_new_york <- cycle_2022 %>%
  filter(State != "NY")

rm(cycle_2022)

# add columns for full name 
non_new_york$full_name <- paste(non_new_york$First_name, non_new_york$Last_name, sep = " ")

# standardize for grouping
non_new_york$full_name <- toupper(non_new_york$full_name)

First, I’d like to take a look at the donations to Gubernatorial-incumbent Kathy Hochul.

# filter data set to her campaign committee name 

hochul <- non_new_york %>%
  filter(Committee == "Friends for Kathy Hochul")

hochul_unique <- hochul %>%
  group_by(full_name, State) %>%
  summarize(total_donation = sum(Donation_amount))

#adding a column for donation group 
hochul_unique <- hochul_unique %>%
  mutate(
    Group = case_when(
      total_donation > 0 & total_donation < 251 ~ "Small Dollar",
      total_donation >= 251~ "Large Dollar"
    )
  )

Mapping Sum of Out-of-State Donations

2022 Cycle

To graph my data, I downloaded the 2018 Cartographic Boundary Files from the United States Census Bureau. I merged the nation shapefile with the data from the New York State BOE grouped by state. I added three columns to the shapefile: total donation amount, count of small dollar donors, and count of large dollar donors. Small dollar is defined as $250 and under, in accordance with the state’s public matching threshold.

## Reading layer `cb_2018_us_state_500k' from data source 
##   `/Users/paytonlussier/Downloads/cb_2018_us_state_500k/cb_2018_us_state_500k.shp' 
##   using driver `ESRI Shapefile'
## Simple feature collection with 56 features and 9 fields
## Geometry type: MULTIPOLYGON
## Dimension:     XY
## Bounding box:  xmin: -179.1489 ymin: -14.5487 xmax: 179.7785 ymax: 71.36516
## Geodetic CRS:  NAD83