Simpler to install fork of https://www.gwern.net/Resorter#source-code .
For people who have never worked with R scripts before but want to try it out painlessly.
$ Rscript resorter.r --output out.csv --input in.csv
Comparison commands: 1=yes, 2=tied, 3=second is better, p=print estimates, s=skip, q=quit
Is 'Blinky' greater than 'Clyde'? 1
Is 'Clyde' greater than 'Inky'? 3
Is 'Inky' greater than 'Pinky'? 1
Is 'Pinky' greater than 'Inky'? 3
Is 'Inky' greater than 'Blinky'? 4
Is 'Inky' greater than 'Blinky'? 3
Is 'Clyde' greater than 'Pinky'? 1
Resorting complete
# see out.csv for example results
PR friendly! If you have instructions for your OS, consider submitting a PR.
git clone https://github.com/hiAndrewQuinn/resorter.git
cd ./resorter
# sudo needed the first time to download + compile BradleyTerry package.
sudo apt install r-base cmake
Gwern further notes:
As with any user-installed language, you may run into compile errors while installing dependencies.
Look for a missing C library to install system-wide as root, or see if your package manager provides one of the dependencies already as a precompiled binary, so you can
apt-get install r-cran-bradleyterry2
orapt-get install r-cran-lme4
to bypass any compile errors.
Install R with Homebrew if needed.
git clone https://github.com/hiAndrewQuinn/resorter.git
cd ./resorter
brew install r
# Capitalization matters.
# This will take a while the first time. You may need `sudo` / admin privileges.
Rscript resorter.r --output out.csv --input in.csv