Learn R Programming

PlayerRatings (version 1.1-0)

kfide: The K Factor Function Used By FIDE

Description

Calculates the K factor for the Elo rating system based on player rating, number of games played, and optionally a binary elite player identifier.

Usage

kfide(rating, games, elite = NULL, kv = c(10,15,30))

Arguments

rating

A numeric vector of player ratings.

games

A numeric vector with the number of games played by each player.

elite

If not NULL, then a binary identifier for elite players.

kv

The three different K factors that the function can produce.

Value

A numeric vector of K factors.

Details

This function is designed to be used for the kfac argument of either fide or elo. It returns kv[1] for elite players, kv[2] for non-elite players with 30 games or more, and kv[3] for non-elite players with less than 30 games. The default is the current FIDE implementation which uses the K factors 10, 15 and 30. The K factor of 30 was changed from 25 in the year 2011. In this context, elite players are defined by FIDE as being those who have reached the rating 2400 or more at any time in the past.

See Also

fide