Skip to content

billbillbilly/quickPWCR

Repository files navigation

GPLv3 License R-CMD-check CRAN monthly total

quickPWCR

Introduction

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.

Installation

# install from CRAN
install.packages("quickPWCR")
# install the package (develop version) from GitHub
devtools::install_github("billbillbilly/quickPWCR", dependencies=TRUE)

Usage

# 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)

Note

The package currently does not support multi-core processing on Windows system.

Issues and bugs

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published