Release of the R package footBayes 2.1.0 (using CmdStan)

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:

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

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

footBayes website:

Source code and documentation:

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

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:

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

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

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