DCPredict: DC Predict home/draw/away win

View source: R/dixon-coles.R

DCPredictR Documentation

DC Predict home/draw/away win

Description

Using Dixon-Coles' technique, predict odds each of home win, draw, and away win.

Usage

DCPredict(
  home,
  away,
  params = NULL,
  maxgoal = 10,
  scores = HockeyModel::scores,
  expected_mean = NULL,
  season_percent = NULL,
  draws = TRUE
)

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

draws

Whether draws are allowed. Default True

Value

a vector of home win, draw, and away win probability, or if draws=False, a vector of home and away win probability


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