Description Usage Arguments Value
View source: R/bradley_terry.R
Finds the probability of player1 winning in each match, using the predicted Bradley-Terry scores.
1 | predict_winner(test_dat,lambda_hat,players)
|
test_dat |
a matrix containing the matches played. |
lambda_hat |
vector contain a list of all the predicted scores from the EM algorithm. |
players |
vector containing a list of players for which there is a predicted Bradley-Terry score. |
The probability that player 1 beats player 2 using the Bradley-Terry formula: lambda_1/(lambda_1+lambda_2). If either of the player does not have a predicted score then 0.5 is returned to express uncertainty.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.