Description Usage Arguments Details Value See Also Examples
Predict the result of two-player or multi-player games, given the estimated ratings for each player.
1 2 3 |
object |
An object of class |
newdata |
For two player games, a dataframe containing
three variables: (1) a numeric vector denoting the time period
in which the game is taking place (2) a numeric or character
identifier for player one (3) a numeric or character identifier
for player two. The time period can contain missing values as
it is not used for the prediction. For N-player games (i.e.
for objects created by the |
tng |
A single value. If the number of games played by
any player is below this value, then either the prediction
will be a missing value, or the prediction will be based on
|
trat |
A single number (for Elo and EloM), or a vector of
length two (for Glicko or Glicko-2 or Stephenson) giving the
rating and deviation parameters to be used for players who have
played less than |
gamma |
A player one advantage parameter; either a single
value or a numeric vector equal to the number of rows in
|
thresh |
A single value. If given, a binary vector is returned indicating whether the prediction is greater than this value. Ignored for multi-player. |
placing |
For multi-player only. If |
... |
Not used. |
The function predicts the expectation of the game result. In two-player games, if the value of one is a win for player one, and the value of zero is a win for player two, and there are no other possibilities, then the prediction is the probability of a win for player one. This is not the case when draws are a possibility.
For multi-player predictions using objects produced by elom
,
expected base scores are given for each player. These are simply the
difference between the rating of a player and the average of all
players in the game, divided by 40.
A numeric vector of predictions of two-player games, or a matrix of expected base scores for multi-player games, either of which may contain missing values.
1 2 3 4 5 6 7 8 9 10 |
[,1] [,2] [,3] [,4]
[1,] 4 1 2 3
[2,] 2 4 1 3
[3,] 2 3 4 1
[4,] 3 2 1 3
[5,] 2 4 1 3
[6,] 3 2 3 1
[7,] 1 3 2 4
[8,] 1 4 2 3
[9,] 4 2 3 1
[10,] 4 1 3 2
[11,] 4 1 3 2
[12,] 2 2 1 2
[13,] 1 3 2 3
[14,] 3 3 2 1
[15,] 1 2 4 3
[16,] 1 3 3 2
[17,] 3 1 4 2
[18,] 1 3 4 2
[19,] 1 4 3 2
[20,] 4 1 2 3
[21,] 1 2 3 3
[22,] 3 2 3 1
[23,] 1 3 4 2
[24,] 3 2 3 1
[25,] 1 4 3 2
[26,] 4 3 2 1
[27,] 1 2 4 3
[28,] 1 3 4 2
[29,] 1 3 4 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 4 1
[109,] 1 2 3 3
[110,] 1 2 3 3
[111,] 2 1 4 3
[112,] 2 1 4 3
[113,] 1 2 4 3
[114,] 1 3 4 2
[115,] 2 1 3 4
[116,] 1 3 4 2
[117,] 1 2 4 3
[118,] 1 3 2 3
[119,] 2 1 4 3
[120,] 1 3 2 4
[121,] 1 2 3 4
[122,] 4 1 2 3
[123,] 2 4 1 2
[124,] 3 2 3 1
[125,] 1 2 3 3
[126,] 1 2 3 3
[127,] 2 3 3 1
[128,] 1 2 3 3
[129,] 1 2 3 3
[130,] 3 1 3 2
[131,] 1 2 2 2
[132,] 1 4 2 3
[133,] 1 4 2 3
[134,] 1 4 2 3
[135,] 1 4 2 3
[136,] 1 4 2 3
[137,] 1 4 2 3
[138,] 1 4 2 3
[139,] 1 4 2 3
[140,] 1 4 2 3
[141,] 1 4 2 3
[142,] 1 4 2 3
[143,] 1 2 3 4
[144,] 2 2 1 2
[145,] 1 2 4 3
[146,] 1 2 3 3
[147,] 1 2 3 4
[148,] 1 2 4 3
[149,] 1 1 1 1
[150,] 1 1 1 1
[151,] 1 1 1 1
[152,] 2 2 1 2
[153,] 3 2 3 1
[154,] 3 1 2 3
[155,] 1 2 3 3
[156,] 3 1 2 4
[157,] 4 3 1 2
[158,] 3 1 2 4
[159,] 1 2 2 2
[160,] 2 1 2 2
[161,] 1 1 1 1
[162,] 3 4 2 1
[163,] 4 1 3 2
[164,] 3 4 1 2
[165,] 3 4 2 1
[166,] 3 4 1 2
[167,] 3 4 1 2
[168,] 2 1 2 2
[169,] 4 2 2 1
[170,] 2 2 2 1
[171,] 2 4 1 2
[172,] 2 4 1 3
[173,] 2 4 1 3
[174,] 1 1 1 1
[175,] 1 1 1 1
[176,] 2 1 2 2
[177,] 2 1 2 2
[178,] 2 1 2 2
[179,] 1 2 2 2
[180,] 1 2 2 2
[181,] 2 3 3 1
[182,] 2 3 3 1
[183,] 2 3 3 1
[184,] 3 2 4 1
[185,] 1 3 2 3
[186,] 4 2 2 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.