knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

regista

Build Status AppVeyor Build Status Coverage status Lifecycle: experimental

Overview

regista is a package for performing some of the common modelling tasks in soccer analytics.

Installation

regista is not currently available on CRAN but can be downloaded from github like so:

# install.packages("devtools")
devtools::install_github("torvaney/regista")

Examples

Dixon-Coles

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:

Other options



Torvaney/regista documentation built on June 7, 2021, 12:21 a.m.