R/scorelines_to_outcomes.R
scorelines_to_outcomes.Rd
Often we are more interested in the outcome of a match (home win, draw, away win) than we are in the scorelines. This is a helper function that aggregates scoreline probabilities to outcome probabilities.
scorelines_to_outcomes(scorelines, hgoal = hgoal, agoal = agoal, prob = prob)
scorelines | A dataframe containing the scoreline probabilities |
---|---|
hgoal | The column containing home goals |
agoal | The column containing away goals |
prob | The column containing the probability of that given scoreline |