knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
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)
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:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.