Dear Reader,

Please unzip all of the files into the same folder.

The files that should be run directly are
Table1.R - reproduces the information in Table 1
Table2.R - reproduces the information in Table 2
Table3.R - reproduces the information in Table 3
  (this script calls functions in functions-Table3.R)
Figure1.R - reproduces Figure 1 in the manuscript
Figure2.R - reproduces Figure 2 in the manuscript
  (this script calls functions in functions-Figure2.R)
Figure3.R - reproduces Figure 3 in the manuscript
Figure4.R - reproduces Figure 4 in the manuscript

Please follow the directions within each R script.  In Figure3.R you will need to manually change file names in the middle of the script to complete the code.

The file glicko3-functions.R is a set of core rating system functions that is called by Figure3.R, Figure4.R, Table1.R, Table3.R, and functions-Table3.R.

Also be aware that the code for Table1.R (which determines the optimized values for the rating algorithm) will take a very long time to run - possibly 24 hours or more.  You've been warned...

The following is a description of the contents of the csv files in the zip folder:

iccf-normal-games.csv - main ICCF game data set (392,658 games) 
iccf-normal-games-rated-for-gam.csv - game outcome data for GAM fit for Figure 1
params-quasi.csv - system parameter values for the ICCF-implemented system
params-optimal.csv - system parameter values for the optimized system
game_data_for_assessment.csv - game data used in Table 3
probpred-quasi.csv - game outcomes and probability predictions used for Figure 4
final-ratings.csv - final actual ICCF (old system) ratings used in Figure 3
init-ratings.csv - initial ICCF ratings at the start of the study period, used in Table1.R, Figure3.R and Figure4.R 

Best,

         - Mark
