iterativeGamePredict: Predict the outcome of one game using iterative Dixon Coles...

View source: R/dc_iterative.R

iterativeGamePredictR Documentation

Predict the outcome of one game using iterative Dixon Coles model

Description

Predict the outcome of one game using iterative Dixon Coles model

Usage

iterativeGamePredict(
  home,
  away,
  rankings,
  intercept = 1.71418,
  home_adv = 0.075073,
  probs_style = "h"
)

Arguments

home

The Home Team

away

The Away Team

rankings

A rankings dataframe

intercept

Modelled 'intercept' value

home_adv

Modelled 'home_adv' value

probs_style

either 'h' (default) or one of 'ha', ⁠'hda⁠, or 'hdda'

Value

a named list with Probs (a vector), HomexGPred and AwayxGPred (values)


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