scale.elo: standardize Elo ratings

Description Usage Arguments Value Author(s) Examples

View source: R/scale.elo.R

Description

standardize Elo ratings between 0 and 1

Usage

1
2
## S3 method for class 'elo'
scale(x, center = TRUE, scale = TRUE)

Arguments

x

a vector of Elo ratings.

center

ignored.

scale

ignored.

Value

returns a vector of Elo ratings, which are scaled between 0 and 1, with the highest rating that is supplied becoming 1, the lowest becoming 0, and all others being proportionally scaled in between

Author(s)

Christof Neumann

Examples

1
2
3
4
5
6
data(adv)
SEQ <- elo.seq(winner=adv$winner, loser=adv$loser, Date=adv$Date)
extract.elo(SEQ, "2010-01-30")
extract.elo(SEQ, "2010-01-30", standardize=TRUE)
# same as
scale.elo(extract.elo(SEQ, "2010-01-30"))

Example output

Loading required package: zoo

Attaching package: 'zoo'

The following objects are masked from 'package:base':

    as.Date, as.Date.numeric

[1] "loop 1: Elo calculations"

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |....                                                                  |   6%
  |                                                                            
  |......                                                                |   9%
  |                                                                            
  |........                                                              |  12%
  |                                                                            
  |...........                                                           |  15%
  |                                                                            
  |.............                                                         |  18%
  |                                                                            
  |...............                                                       |  21%
  |                                                                            
  |.................                                                     |  24%
  |                                                                            
  |...................                                                   |  27%
  |                                                                            
  |.....................                                                 |  30%
  |                                                                            
  |.......................                                               |  33%
  |                                                                            
  |.........................                                             |  36%
  |                                                                            
  |............................                                          |  39%
  |                                                                            
  |..............................                                        |  42%
  |                                                                            
  |................................                                      |  45%
  |                                                                            
  |..................................                                    |  48%
  |                                                                            
  |....................................                                  |  52%
  |                                                                            
  |......................................                                |  55%
  |                                                                            
  |........................................                              |  58%
  |                                                                            
  |..........................................                            |  61%
  |                                                                            
  |.............................................                         |  64%
  |                                                                            
  |...............................................                       |  67%
  |                                                                            
  |.................................................                     |  70%
  |                                                                            
  |...................................................                   |  73%
  |                                                                            
  |.....................................................                 |  76%
  |                                                                            
  |.......................................................               |  79%
  |                                                                            
  |.........................................................             |  82%
  |                                                                            
  |...........................................................           |  85%
  |                                                                            
  |..............................................................        |  88%
  |                                                                            
  |................................................................      |  91%
  |                                                                            
  |..................................................................    |  94%
  |                                                                            
  |....................................................................  |  97%
  |                                                                            
  |......................................................................| 100%
[1] "loop 2: Stability calculations"

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |....                                                                  |   6%
  |                                                                            
  |......                                                                |   9%
  |                                                                            
  |........                                                              |  12%
  |                                                                            
  |...........                                                           |  15%
  |                                                                            
  |.............                                                         |  18%
  |                                                                            
  |...............                                                       |  21%
  |                                                                            
  |.................                                                     |  24%
  |                                                                            
  |...................                                                   |  27%
  |                                                                            
  |.....................                                                 |  30%
  |                                                                            
  |.......................                                               |  33%
  |                                                                            
  |.........................                                             |  36%
  |                                                                            
  |............................                                          |  39%
  |                                                                            
  |..............................                                        |  42%
  |                                                                            
  |................................                                      |  45%
  |                                                                            
  |..................................                                    |  48%
  |                                                                            
  |....................................                                  |  52%
  |                                                                            
  |......................................                                |  55%
  |                                                                            
  |........................................                              |  58%
  |                                                                            
  |..........................................                            |  61%
  |                                                                            
  |.............................................                         |  64%
  |                                                                            
  |...............................................                       |  67%
  |                                                                            
  |.................................................                     |  70%
  |                                                                            
  |...................................................                   |  73%
  |                                                                            
  |.....................................................                 |  76%
  |                                                                            
  |.......................................................               |  79%
  |                                                                            
  |.........................................................             |  82%
  |                                                                            
  |...........................................................           |  85%
  |                                                                            
  |..............................................................        |  88%
  |                                                                            
  |................................................................      |  91%
  |                                                                            
  |..................................................................    |  94%
  |                                                                            
  |....................................................................  |  97%
  |                                                                            
  |......................................................................| 100%
   c    b    d    f    e    g    a 
1207 1144 1095 1004  936  910  704 
    c     b     d     f     e     g     a 
1.000 0.875 0.777 0.596 0.461 0.410 0.000 
    c     b     d     f     e     g     a 
1.000 0.875 0.777 0.596 0.461 0.410 0.000 

EloRating documentation built on May 29, 2017, 7:14 p.m.