calc_game_probs: Calculate game probabilities

Description Usage Arguments Value

View source: R/predictions.R

Description

Combine probabilites derived from the home and away team's record, as well as a TV based win probability from CCL data, to determine probability of outcomes for a specific game. Relative importance of the factors is adjusted with the weights parameter. Function adds a little bit of randomness to the final calculated properties to avoid a deterministic outcome.

Usage

1
calc_game_probs(home_team, away_team, weights)

Arguments

home_team

team object for the home team

away_team

team object for the away team

weights

Vector of weights for probabilities. Length three, order is CCL (TV difference), Home team, Away team

Value

List of probabilities for home team game outcomes


nufflytics/nufflytics documentation built on Oct. 10, 2020, 5:27 p.m.