Learn R Programming

fbRanks (version 2.0)

Association Football (Soccer) Ranking via Poisson Regression

Description

This package uses time dependent Poisson regression and a record of goals scored in matches to rank teams via estimated attack and defense strengths. The statistical model is based on Dixon and Coles (1997) Modeling Association Football Scores and Inefficiencies in the Football Betting Market, Applied Statistics, Volume 46, Issue 2, 265-280. The package has a some webscrapers to assist in the development and updating of a match database. If the match database contains unconnected clusters (i.e. sets of teams that have only played each other and not played teams from other sets), each cluster is ranked separately relative to the median team strength in the cluster. The package contains functions for predicting and simulating tournaments and leagues from estimated models. The package allows fitting via the glm(), speedglm(), and glmnet() functions. The latter allows fast and efficient fitting of very large numbers of teams. The fitting algorithm will analyze the match data and determine which teams form a cluster (a set of teams where there is a path of matches connecting every team) and fit each cluster separately.

Copy Link

Version

Install

install.packages('fbRanks')

Monthly Downloads

16

Version

2.0

License

GPL-2

Maintainer

E Holmes

Last Published

October 23rd, 2013

Functions in fbRanks (2.0)

coef.fbRanks

Return Coefficients from fbRanks Objects
predict.fbRanks

Predict function for fbRanks Objects
create.fbRanks.dataframes

Helper Function to Construct the Scores and Teams Data Frames from csv files.
print.fbRanks

Printing function for fbRanks Objects
construct.team.file

Helper Function to Construct a Team File
scrape.matches

Webscraping Match Scores
create.newdata.dataframe

Helper Function to Replace Team Names in Score File with a Uniform Name from Team Data Frame.
resolve.team.names

Helper Function to Create Uniform Team Names in Score Data Frame
B00data

Match and Team Data for B00 Youth Soccer Matches
fbRanks.utility.functions

Helper Functions in the fbRanks Package
rank.teams

Team Ranks Via Poission Regression
plot.fbRanks

Plotting function for fbRanks Objects
team.name.select

Helper Function to Create Uniform Team Names in Score Data Frame
residuals.fbRanks

Residuals function for fbRanks Objects
team.and.score.filters

Helper Function to Determine Teams or Scores to Include
simulate.fbRanks

Simulate function for fbRanks Objects