glicko {PlayerRatings} | R Documentation |
The Glicko Rating System
Description
Implements the Glicko rating system for estimating the relative skill level of players in two-player games such as chess. It extends the Elo method by including a deviation parameter for each player, representing uncertainty on the rating.
Usage
glicko(x, status = NULL, init = c(2200,300), gamma = 0, cval = 15,
history = FALSE, sort = TRUE, rdmax = 350, ...)
Arguments
x |
A data frame containing four variables: (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. |
status |
A data frame with the current status of the
system. If not |
init |
The rating vector at which to initialize a new player
not appearing in |
gamma |
A player one advantage parameter; either a single
value or a numeric vector equal to the number of rows in
|
cval |
The c parameter, which controls the increase in the player deviations across time. Must be a single non-negative number. |
history |
If |
sort |
If |
rdmax |
The maximum value allowed for the rating deviation. |
... |
Not used. |
Details
The Glicko rating system is a method for evaluating the skill
of players. It is more complex than Elo but typically yields
better predictions.
Default values are roughly optimized for the chess data analyzed
in the file doc/ChessRatings.pdf, using the binomial deviance
criterion. A player one advantage parameter has been added to
the original definition in the reference. A player one advantage
parameter is also used for prediction purposes in
predict.rating
.
In this implementation, rating deviances increase at the
beginning of the updating period, and decrease at the end.
This is slightly different from the Glicko-2 implementation,
where deviance increases for active players may occur at the end
of the previous period. In both implementations there will be
an initial increase for existing but previously inactive players.
Value
A list object of class "rating"
with the following
components
ratings |
A data frame of the results at the end of the
final time period. The variables are self explanatory except
for |
history |
A three dimensional array, or |
gamma |
The player one advantage parameter. |
cval |
The c parameter. |
type |
The character string |
References
Glickman, M.E. (1999) Parameter estimation in large dynamic paired comparison experiments. J. R. Stat. Soc. Ser. C: Applied Statistics, 48(3), 377-394.
See Also
Examples
afl <- aflodds[,c(2,3,4,7)]
robj <- glicko(afl)
robj
robj <- glicko(afl[afl$Week==1,])
for(i in 2:max(afl$Week)) robj <- glicko(afl[afl$Week==i,], robj$ratings)
robj