Description Usage Arguments Details Value References See Also Examples
Implements the Elo based rating system for for multi-player games where the result is a placing or a score. This includes zero-sum games such as poker and mahjong. The default arguments used here are those used by Tenhou for riichi mahjong.
1 2 3 |
x |
A data frame containing |
nn |
Number of players in a single game. If the number of players
varies, then this argument should be set to the maximum number of
players in any game, and the |
exact |
If |
base |
The base values used for the rating. Can be a numeric
vector of length equal to |
status |
A data frame with the current status of the
system. If not |
init |
The rating at which to initialize a new player not
appearing in |
kfac |
The K factor parameter. Can be a single number or
a vectorized function of two arguments, the first being the
ratings and the second being the number of games played. See
|
history |
If |
sort |
If |
... |
Passed to the function |
placing |
If the results are given as placings (e.g. 1 for
first place, 2 for second place) then this argument MUST be set
to |
For multi-player games there is no player one advantage parameter (e.g. a home advantage in football or a white advantage in chess).
If the sum of the vector base
is not zero, or
if base
is a function which is not zero when evaluated
at the starting chip/points value, then you may observe
unusual behaviour and/or substantial ratings inflation/deflation.
The two-player Elo system is based on game outcomes in the interval
[0,1] and therefore uses a different scaling. As a result, the K
factors here should be smaller. The default (as used by Tenhou)
is a K factor of 0.2 for players that have played a large number of
games (see kriichi
).
If the number of players varies and base
is a vector (of length
nn
), then if the game has less than nn
players, the vector
is reduced by successively removing the centre value (for odd lengths)
or by averaging both centre values (for even lengths). For example, if
the x
data frame contains both four-player and three-player
mahjong games, then under the default values the three-player base
vector becomes c(30,0,-30)
, which is consistent with the vector
that Tenhou uses for three-player mahjong.
A numeric matrix can be used to allocate different base
vectors to
different games. For example, in Riichi mahjong, games can be Tonpuusen
(East round only) or Hanchan (East and South rounds), and you may wish
to allocate different base vectors to each type.
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 |
nn |
The number of players for a single game. |
kfac |
The K factor or K factor function. |
type |
The character string |
Elo, Arpad (1978) The Rating of Chessplayers, Past and Present. Arco. ISBN 0-668-04721-6.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.