A collection of functions for constructing large pairwised comparisons and rating them using Elo rating system with supporting parallel processing. The method of random sample pairs is based on Reservoir Sampling.
# install from CRAN
install.packages("quickPWCR")
# install the package (develop version) from GitHub
devtools::install_github("billbillbilly/quickPWCR", dependencies=TRUE)
# create a large group of players
players <- unique(round(runif(n=2000, min=1, max=50000), 0))
# Each player will be randomly paired with other 50 players
pw <- quickPWCR::randompair(players = players, k = 100)
# Assume the 'left' column is for winners and 'right' column is for loser
elo_ratings <- quickPWCR::m_elo(pw,
c('left', 'right'),
elo_randomisations = 100,
initial_rating = 100,
k = 10,
cores = 1)
The package currently does not support multi-core processing on Windows system.
If you discover a bug not associated with connection to the API that is not already a reported issue, please open a new issue providing a reproducible example.