regista is a package for performing some of the common modelling tasks in soccer analytics.
regista is not currently available on CRAN but can be downloaded from github like so:
# install.packages("devtools")
devtools::install_github("torvaney/regista")
The “Dixon-Coles model” is a modified poisson model, specifically designed for estimating teams’ strengths and for predicting football matches.
Regista provides an implementation of this model:
library(regista)
fit <- dixoncoles(hgoal, agoal, home, away, data = premier_league_2010)
print(fit)
#>
#> Dixon-Coles model with specification:
#>
#> Home goals: hgoal ~ off(home) + def(away) + hfa + 0
#> Away goals: agoal ~ off(away) + def(home) + 0
#> Weights : 1
A more flexible api is provided with dixoncoles_ext
, which allows the
base Dixon-Coles model to be extended arbitrarily.
vignette("using-dixon-coles")
gives some simple examples for using the
model. Additionally, there are more extensive examples and analyses
using regista available at the following links: