# Release of the R package footBayes 2.1.0 (using CmdStan)

**URL:** <https://discourse.mc-stan.org/t/release-of-the-r-package-footbayes-2-1-0-using-cmdstan/41662>\
**Category:** General\
**Created:** [October 14, 2026, 11:31am UTC](https://discourse.mc-stan.org/t/release-of-the-r-package-footbayes-2-1-0-using-cmdstan/41662 "2026-10-14T11:31:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeoEgidi1](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/leoegidi1/32/21715_2.png) [@LeoEgidi1](https://discourse.mc-stan.org/u/LeoEgidi1)\
**Post date:** [October 14, 2026, 11:31am UTC](https://discourse.mc-stan.org/t/release-of-the-r-package-footbayes-2-1-0-using-cmdstan/41662/1 "2026-10-14T11:31:43Z")

</div>

Dear Stan community,

We are pleased to announce the release of version 2.1.0 of **footBayes** , now available on CRAN.

**footBayes** is an R package for the estimation, visualization and prediction of goal-based football models: double Poisson, bivariate Poisson, Dixon-Coles, negative binomial, Skellam, Student-t, diagonal-inflated bivariate Poisson and zero-inflated Skellam. Models are fitted by maximum likelihood or in a Bayesian framework through Stan, with static or dynamic team abilities. The package also provides tools for posterior predictive checks, match outcome probabilities, league table reconstruction and model comparison through predictive metrics.

This is also the main und underlying package for the 2025 CRC book “Predictive Modelling for Football Analytics”, by L. Egidi, D. Karlis and I. Ntzoufras:

> **[Predictive Modelling for Football Analytics](https://www.routledge.com/Predictive-Modelling-for-Football-Analytics/Egidi-Karlis-Ntzoufras/p/book/9781032030630)**
>
> Predictive Modelling for Football Analytics discusses the most well-known models and the main computational tools for the football analytics domain. It further introduces the footBayes R package that accompanies the reader through all the examples...

The main changes in version 2.1.0 are:

- The Dixon-Coles model in both stan\_foot() and mle\_foot(), and the negative binomial model in mle\_foot();
- New specifications of the evolution variance of the dynamic models: a common variance (Owen, 2011) and a variance inflation after the summer break (Koopman and Lit, 2015);
- The weighted dynamic models with commensurate priors described in Macrì-Demartino, Egidi and Torelli (2026), Journal of the Royal Statistical Society Series C: [https://doi.org/10.1093/jrsssc/qlag032](https://doi.org/10.1093/jrsssc/qlag032)

The Bayesian models require the cmdstanr package and CmdStan; please install footBayes from source (install.packages(“footBayes”, type = “source”)) so that the Stan models are compiled during installation.

CRAN page:

[https://CRAN.R-project.org/package=footBayes](https://cran.r-project.org/package=footBayes "https://cran.r-project.org/package=footBayes")

footBayes website:

> **[footBayes: Bayesian and MLE football models in R – footBayes](https://leoegidi.github.io/footBayes/)**

Source code and documentation:

> **[GitHub - LeoEgidi/footBayes: An R package for many football models](https://github.com/LeoEgidi/footBayes)**
>
> An R package for many football models

We hope the package will be useful to the community, and we welcome any feedback or suggestions.

Best regards,

Leonardo Egidi, Roberto Macrì-Demartino and Vasilis Palaskas

---

<div class="post-metadata">

**Author:** ![Bob\_Carpenter](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/bob_carpenter/32/9230_2.png) [@Bob\_Carpenter](https://discourse.mc-stan.org/u/Bob_Carpenter)\
**Post date:** [November 6, 2026, 9:24pm UTC](https://discourse.mc-stan.org/t/release-of-the-r-package-footbayes-2-1-0-using-cmdstan/41662/2 "2026-11-06T21:24:48Z")

</div>

Congratulations on finishing it @LeoEgidi1! I hadn’t realized it was out before the post. I opened an issue to add it to our “books using Stan” list, which I think still lives on our web pages:

> <https://github.com/stan-dev/docs/issues/1007>
>
> Here's another book using Stan:
> 
> L. Egidi, D. Karlis and I. Ntzoufras. 2025. \_Pr…edictive Modelling for Football Analytics\_. CRC Press.
> 
> Link:
> 
> https://www.routledge.com/Predictive-Modelling-for-Football-Analytics/Egidi-Karlis-Ntzoufras/p/book/9781032030630

P.S. I’m still envious that @Jonah got to spend so much time with the mayor of Trieste!

---

<div class="post-metadata">

**Author:** ![LeoEgidi1](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/leoegidi1/32/21715_2.png) [@LeoEgidi1](https://discourse.mc-stan.org/u/LeoEgidi1)\
**Post date:** [November 7, 2026, 10:50am UTC](https://discourse.mc-stan.org/t/release-of-the-r-package-footbayes-2-1-0-using-cmdstan/41662/3 "2026-11-07T10:50:58Z")

</div>

Thanks a lot dear @Bob_Carpenter ;)  
The issue is great!

P.s. Looking forward to seeing you here again soon!
