This is the package that powers the A.I. Sports College Football 4th Down Model discussed in this UteZone article. The model is heavily based on the work and code produced by Ben Baldwin for his 4th Down Calculator for the NFL
Data freshness and pipeline status for every SportsDataverse dataset: sportsdataverse.org/status.
You can install the released version of cfb4th from CRAN with:
install.packages("cfb4th")
And the development version from GitHub with:
# install.packages("pak")
# pak::pak("sportsdataverse/cfb4th")
install.packages("cfb4th", repos = c('https://sportsdataverse.r-universe.dev', 'https://cloud.r-project.org'))
The two xgboost models (fourth-down conversion and win probability)
are not bundled with the package: each is downloaded the first time it
is needed and cached under tools::R_user_dir("cfb4th", "cache"), so
the first call to add_4th_probs() needs network access. Clear the
cache to force a fresh download with cfb4th_clear_cache().
There are some edge cases that are not accounted for. These should only make a marginal difference to the recommendations as they are largely edge cases (e.g. the possibility for a field goal to be blocked and returned).
To get started with cfb4th please see this article.

A printable one-page reference covering cfbplotR, cfb4th and cfbseedR — the function families, the loaders, and what each one returns.
📄 Download the cfb4th cheat sheet (PDF)
Free to download, print and hand out; light and dark, US Letter landscape. Every SportsDataverse package has one — browse them all at sportsdataverse.org/cheatsheets.
To cite the cfb4th R
package in publications, use:
BibTeX Citation
@misc{lee_et_al_2021_cfb4th,
author = {Jared Lee and Ben Baldwin and Sebastian Carl and Saiem Gilani},
title = {cfb4th: The SportsDataverse's R Package for College Football 4th Down Modeling.},
url = {https://cfb4th.sportsdataverse.org/},
year = {2026}
}