Hi, I would like to program an "Elo" rating in SAS to rate sports teams. The Elo rating was originally developed to rate chess players. I would like this one to work as follows: Each team starts off with an initial rating of 1,000 points. For each match, each team contributes 5% of their current rating to the "Pot" The winning team collects the pot and that amount is added to the it's new (post match) rating The losing team does not take anything from the pot and their rating will decrease by how much they contributed If there is a tie, the pot will be split equally between to the two teams. Example Lets say we have 3 teams, Team A, B and C First match is A v B. Each team's initial rating is 1,000 and they contribute 5% of that (50 points) each to the pot Team A wins and collects the pot. Their new rating is 1,050. Team B lose so take nothing, just lose the 50 points they contributed so their new rating is 950. Next match is B v C. B's pre match rating is 950 and they contribute 5% of that to the pot (48). It's team C's first match so their pre match rating is 1,000 and they contribute 5% (50) to the pot. Team B win and collect the pot so their new rating is 1,048. Team C lose so their rating decreases by the 50 they contributed. Their post match rating is 950. So at this point the team rating would read as follows: Team A 1,050 Team B 1,048 Team C 950 See below the variables in my dataset (along with first few lines of sample data) Date Team 1 Team 2 Winner 01jan2014 Team A Team B Team A 05jan2014 Team B Team C Team B Thanks cxkev182
... View more