https://github.com/nflverse/nflseedr
Functions to Efficiently Simulate and Evaluate NFL Seasons
https://github.com/nflverse/nflseedr
cran football-simulation nfl season-simulations
Last synced: 6 months ago
JSON representation
Functions to Efficiently Simulate and Evaluate NFL Seasons
- Host: GitHub
- URL: https://github.com/nflverse/nflseedr
- Owner: nflverse
- License: other
- Created: 2021-01-19T18:47:13.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-03-25T20:44:59.000Z (7 months ago)
- Last Synced: 2025-04-26T14:51:01.241Z (6 months ago)
- Topics: cran, football-simulation, nfl, season-simulations
- Language: R
- Homepage: https://nflseedr.com
- Size: 33.5 MB
- Stars: 23
- Watchers: 4
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.Rmd
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
---
output: github_document
---```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
eval = FALSE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```# **nflseedR**
[](https://CRAN.R-project.org/package=nflseedR)
[](https://CRAN.R-project.org/package=nflseedR)
[](https://nflseedr.com/)
[](https://github.com/nflverse/nflseedR/actions/workflows/R-CMD-check.yaml)
[](https://lifecycle.r-lib.org/articles/stages.html#stable)
[](https://discord.com/invite/5Er2FBnnQa)## Motivation
The goal of nflseedR is to allow NFL modelers to simulate NFL seasons using their models, and taking off their plate the work of tracking the schedule, navigating the complex rules for division ranking, playoff seeding, and draft order. This can also aid in sports betting, such as betting on futures or win totals.
The package can run thousands of Monte Carlo style simulations of the NFL regular season, based on a model you input. Within each simulated season, it will calculate the division standings and playoff seedings for you. It will also generate the playoff games and simulate these as well, and calculate the order for next year's NFL draft. These can be used to examine the probability of team making the playoffs or winning the Super Bowl, based on your model.
The season simulations will take all completed games into account already, and only simulate from there forward, including if run during the playoffs.
The season simulation code for nflseedR 1.x was developed by Lee Sharpe ([\@LeeSharpeNFL](https://twitter.com/leesharpenfl)) and building it as package was developed by Sebastian Carl ([\@mrcaseb](https://bsky.app/profile/mrcaseb.nflverse.com)).
nflseedR 2.0 introduced high efficient standings and simulation functionality which was developed by Sebastian Carl ([\@mrcaseb](https://bsky.app/profile/mrcaseb.nflverse.com))
## Installation
The easiest way to get nflseedR is to install it from [CRAN](https://cran.r-project.org/package=nflseedR) with:
```{r eval=FALSE}
install.packages("nflseedR")
```To get a bug fix or to use a feature from the development version, you can install the development version of nflseedR either from [GitHub](https://github.com/nflverse/nflseedR) with
```{r eval=FALSE}
if (!requireNamespace("pak")) install.packages("pak")
pak::pak("nflverse/nflseedR")
```or prebuilt from the [development repo](https://nflverse.r-universe.dev) with:
```{r eval=FALSE}
install.packages("nflseedR", repos = c("https://nflverse.r-universe.dev", getOption("repos")))
```## Get Started
With nflseedR it's possible to
- calculate NFL standings including deep tie breakers and to
- simulate complete NFL seasons.For more info, please see **["Getting started with nflseedR"](https://nflseedr.com/articles/nflseedR.html)**