Package: footBayes 2.1.0

footBayes: Fitting Bayesian and MLE Football Models
This is the first package allowing for the estimation, visualization and prediction of the most well-known football models: double Poisson, bivariate Poisson, Dixon-Coles, negative binomial, Skellam, student_t, diagonal-inflated bivariate Poisson, and zero-inflated Skellam. It supports both maximum likelihood estimation (MLE, for 'static' models only) and Bayesian inference. Team abilities can be static or dynamic over weeks or seasons, with alternative specifications of the evolution variance: a common variance (Owen, 2011), variance inflation after the summer break (Koopman and Lit, 2015) <doi:10.1111/rssa.12042>, and weighted dynamic models with commensurate priors (Macrì-Demartino, Egidi and Torelli, 2026) <doi:10.1093/jrsssc/qlag032>. Historical team strengths can be estimated through a Bayesian Bradley-Terry-Davidson model and used as a covariate. For Bayesian methods, it incorporates several techniques: MCMC sampling with Hamiltonian Monte Carlo, variational inference using either the Pathfinder algorithm or Automatic Differentiation Variational Inference (ADVI), and the Laplace approximation. The package compiles all the 'CmdStan' models once during installation using the 'instantiate' package. The model construction relies on the most well-known football references, such as Dixon and Coles (1997) <doi:10.1111/1467-9876.00065>, Karlis and Ntzoufras (2003) <doi:10.1111/1467-9884.00366> and Egidi, Pauli and Torelli (2018) <doi:10.1177/1471082X18798414>.
Authors:
footBayes_2.1.0.tar.gz
footBayes_2.1.0.zip(r-4.7-x86_64)footBayes_2.1.0.zip(r-4.7-arm64)footBayes_2.1.0.zip(r-4.6-x86_64)footBayes_2.1.0.zip(r-4.6-arm64)footBayes_2.1.0.zip(r-4.5-x86_64)
footBayes_2.1.0.tgz(r-4.6-x86_64)footBayes_2.1.0.tgz(r-4.6-arm64)footBayes_2.1.0.tgz(r-4.5-x86_64)footBayes_2.1.0.tgz(r-4.5-arm64)
footBayes_2.1.0.tar.gz(r-4.7-arm64)footBayes_2.1.0.tar.gz(r-4.7-x86_64)footBayes_2.1.0.tar.gz(r-4.6-arm64)footBayes_2.1.0.tar.gz(r-4.6-x86_64)
footBayes_2.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
footBayes/json (API)
| # Install 'footBayes' in R: |
| install.packages('footBayes', repos = c('https://leoegidi.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/leoegidi/footbayes/issues
Last updated from:381ec64074. Checks:15 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 292 | ||
| linux-devel-x86_64 | OK | 258 | ||
| source / vignettes | OK | 1327 | ||
| linux-release-arm64 | OK | 317 | ||
| linux-release-x86_64 | OK | 255 | ||
| macos-release-arm64 | OK | 155 | ||
| macos-release-x86_64 | OK | 442 | ||
| macos-oldrel-arm64 | OK | 166 | ||
| macos-oldrel-x86_64 | OK | 353 | ||
| windows-devel-arm64 | OK | 335 | ||
| windows-devel-x86_64 | OK | 198 | ||
| windows-release-arm64 | OK | 273 | ||
| windows-release-x86_64 | OK | 184 | ||
| windows-oldrel-x86_64 | OK | 180 | ||
| wasm-release | OK | 303 |
Exports:btd_footcauchycompare_footfoot_abilitiesfoot_probfoot_rankfoot_round_robinlaplacemle_footnormalplot_btdPosteriorplot_logStrengthpp_footstan_footstudent_t
Dependencies:abindbackportsBHcallrcheckmateclicpp11DEoptimRdescdistributionaldplyrextraDistrfarverfsgenericsggplot2ggridgesgluegridExtragtableinlineinstantiateisobandlabelinglifecycleloomagrittrMASSmatrixStatsmetRologynumDerivotelpillarpkgbuildpkgconfigplyrposteriorprocessxpspurrrQuickJSRR6RColorBrewerRcppRcppArmadilloRcppEigenRcppParallelreshape2rlangrobustbaserstanS7scalesStanHeadersstringistringrtensorAtibbletidyrtidyselectutf8vctrsviridisLitewithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Bayesian Bradley-Terry-Davidson Model | btd_foot |
| Compare Football Models using Various Metrics | compare_foot |
| English league results 1888-2022 | england |
| Plot football abilities from Stan and MLE models | foot_abilities |
| Plot football matches probabilities for out-of-sample football matches. | foot_prob |
| Rank and points predictions | foot_rank |
| Round-robin for football leagues | foot_round_robin |
| Italy league results 1929-2022 | italy |
| Fit football models with Maximum Likelihood | mle_foot |
| Plot Posterior Distributions for 'btdFoot' Objects | plot_btdPosterior |
| Plot Rankings for btdFoot Objects | plot_logStrength |
| Posterior predictive checks for football models | pp_foot |
| Print Method for btdFoot Objects | print.btdFoot |
| Print method for compareFoot objects | print.compareFoot |
| Print Method for stanFoot Objects | print.stanFoot |
| Football priors distributions and options | cauchy laplace normal priors student_t |
| Fit football models using CmdStan | stan_foot |
