This repository contains the following folders for code inside the R folder:
- cmsac_posts - code for posts on Carnegie Mellon Sports Analytics Club site.
- init_models -
code for creating the same expected points (EP), field goal, and win probability (WP) models.
that are used in the
nflscrapRpackage - legacy_model_code -
old version of code for creating
nflscrapRmodels. - loso_cv_calibration -
code for calculating the leave-one-season-out cross validation calibration results
and generating the calibration plots in the
nflWARpaper for thenflscrapRmodels. Includes code for an alternate form of the EP model using ordinal logistic regression, which yields dramatically worse calibration results. - nflWAR_paper_figures_code -
code for generating the figures related to the EP and WP models seen in the
nflWARpaper.