poisson_predict_match: Poisson Predict Match

Description Usage Arguments Value

View source: R/poisson_model.R

Description

Predict a match using poisson regression

Usage

1
2
3
4
5
6
7
8
poisson_predict_match(
  home_team,
  away_team,
  fit,
  max_goals = 8,
  markets = c("result", "over_under", "both_teams_to_score"),
  over_under_goals = 2.5
)

Arguments

home_team

the name of the home_team

away_team

the name of the away_team

fit

fitted glm using poisson regression

max_goals

the maximum number of goals to consider in a match

markets,

vector contain one or more of "result", "over_under" or "both_teams_to_score"

over_under_goals

a number usual 0.5, 1.5, 2.5, etc though could be a whole number. Only comes into play if markets is "over_under"

Value

a tibble of probabilities for each outcome


neilcuz/panenkar documentation built on June 19, 2021, 7:31 p.m.