dcProbMatrix: Generate the Dixon-Coles' Probability Matrix

View source: R/dixon-coles.R

dcProbMatrixR Documentation

Generate the Dixon-Coles' Probability Matrix

Description

Generate the Dixon-Coles' Probability Matrix

Usage

dcProbMatrix(
  home,
  away,
  params = NULL,
  maxgoal = 10,
  scores = HockeyModel::scores,
  expected_mean = NULL,
  season_percent = NULL
)

Arguments

home

home team

away

away team

params

The named list containing m, rho, beta, eta, and k. See updateDC for information on the params list

maxgoal

max number of goals per team

scores

optional, if not supplying m & rho, scores used to calculate them.

expected_mean

the mean lambda & mu, used only for regression

season_percent

the percent complete of the season, used for regression

Value

a square matrix of dims 0:maxgoal with odds at each count of home goals on 'rows' and away goals on 'columns'


pbulsink/HockeyModel documentation built on Dec. 16, 2024, 8:03 a.m.