Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

krating

A K Factor Function With Dependence On Rating


Description

Calculates the K factor for the Elo rating system based on the player rating.

Usage

krating(rating, games, elite = NULL, rv = 2300, kv = c(32,26))

Arguments

rating

A numeric vector of player ratings.

games

A numeric vector with the number of games played by each player. The K factor does not depend on this quantity.

elite

Not used.

rv

A numeric vector of length one less than kv giving the thresholds for the ratings.

kv

A numeric vector of length one more than gv giving the different K factors that the function can produce.

Details

This function is designed to be used for the kfac argument of either fide or elo. It returns kv[i] for players who have a rating within the intervals defined by rv (closed on the right).

Value

A numeric vector of K factors.

See Also


PlayerRatings

Dynamic Updating Methods for Player Ratings Estimation

v1.1-0
GPL-3
Authors
Alec Stephenson and Jeff Sonas.
Initial release
2020-02-28

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.