Description Usage Arguments Value References Examples
This function implements the ELO rating system for performing pairwise comparisons.
1 2 3 4 5 6 7 8 9 |
match_data |
A data frame containing four columns: (1) a numeric vector denoting the time period in which the game took place (2) a numeric or character identifier for player one (3) a numeric or character identifier for player two and (4) the result of the game expressed as a number, typically equal to one for a player one win, zero for a player two win and one half for a draw. |
init_data |
Initialise a rating model with ratings component of the
returned list of the output from a previous |
init_rating |
The initial rating for players not appearing in
|
eta |
The learning rate. |
p1_advantage |
Player 1 advtange parameter. Either a single value or a
vector equal to the number of rows in |
save_history |
If |
sort |
If |
A list object of class "mELO_rating
" with the following
components:
A data frame of the results at the end of the final time period. The variables are self explanatory except for Lag, which represents the number of time periods since the player last played a game. This is equal to zero for players who played in the latest time period, and is also zero for players who have not yet played any games.
An array containing the ratings history for all players.
A single value or a vector values for the advantage Player 1 had.
The learning rate.
The type of model. In this case, "ELO".
The player 1 success probabilities predicted prior to adjusting to the outcome of the match.
The outcome for player 1 for each match.
The mean logloss error for all predictions.
Elo, Arpad (1978) The Rating of Chessplayers, Past and Present. Arco. ISBN 0-668-04721-6.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.