Glicko rating algorithm Wrapper arround `glicko` update algorithm. Wrapper allows user to simplify calculation providing only data and initial parameters assumptions
glicko_run(formula, data, r, rd, sigma, weight, kappa = 0.5, idlab,
init_r = 1500, init_rd = 350, pb = FALSE)
formula specifying model. Glicko algorithm allows only player ranking parameter and should be specified by following manner: `rank | id ~ name`. Names in formula are unrestricted, but model structure remains the same:
rank player position in event.
id event identifier in which pairwise comparison is assessed.
name of player.
data.frame which contains columns specified in formula, and optionaly columns defined by `sigma`, `weight` or `date`.
named vector of initial players ratings estimates. In there is no assumption, initial ratings are set be r=1500. Names of vector should correspond with `name` in formula.
named vector of initial rating deviation estimates. In there is no assumption, initial ratings are set be r=300 Names of vector should correspond with `name` in formula.
name of column in `data` containing rating volatility. Rating volitality is a value which multiplies prior `rd`. If `sigma > 0` then prior `rd` increases, making estimate of `r` more uncertain.
name of column in `data` containing weights. Weights increasing or decreasing update change. Higher weight increasing impact of corresponding event.
controls `rd` shrinkage not to be greater than `rd*(1-kappa)`. `kappa=1` means that `rd` will not be decreased.
name of column in `data` containing date. Doesn't affect estimation process. If specified, charts displays estimates changes in time instead of by observation `id`.
initial values for `r` if not provided. Default = 1500
initial values for `r` if not provided. Default = 350
logical, if TRUE progress bar will appear in console. Default = FALSE
A "rating" object is returned:
final_r
named vector containing players ratings.
final_rd
named vector containing players ratings deviations.
r
data.frame with evolution of the ratings and ratings deviations estimated at each event.
pairs
pairwise combinations of players in analysed events with prior probability and result of a challange.
class
of the object.
method
type of algorithm used.
formula
modelled formula.
# NOT RUN {
# Example from Glickman
data <- data.frame( name = c( "A", "B", "C", "D" ),
rank = c( 3, 4, 1, 2 ))
glicko <- glicko_run( rank ~ name, data )
# }
Run the code above in your browser using DataLab