View source: R/bradley.terry.R
bradley.terry | R Documentation |
Fit a Bradley-Terry model on game score data
bradley.terry(games)
games |
data.frame with the following columns: game.id, home.id, away.id, home.score, away.score, neutral, ot (matched by output of scrape.game.results) |
matrix of win probabilities, with rows and columns labeled by team. Each entry gives the probability of the team corresponding to that row beating the team corresponding to that column.
sspowers
prob = bradley.terry(games = games.men.2018)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.