Description Usage Arguments Value
View source: R/poisson_model.R
Predict a match using poisson regression
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
)
|
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" |
a tibble of probabilities for each outcome
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.