This package contains code (scraping and analysis) for a paper on shirking among MLB umpires written by Michael Lopez and Brian Mills. A pre-print of the paper can be found at SSRN
See the attached code to replicate our analysis, which can be done in two steps:
scraping.R
will download MLB pitch data, and use some data wrangling steps to filter to the desired sample of pitches. (link)wrangling.R
goes through our data wrangling steps to filter the correct set of pitches (link)analysis.R
uses generalized additive models to assess shirking behavior (link)results.R
provides code output from the analysis (link)