randomelo: calculate Elo ratings from an interaction matrix

Description Usage Arguments Value Author(s) Examples

View source: R/randomelo.R

Description

calculate Elo ratings from an interaction matrix based on randomly generated sequences

Usage

1
randomelo(interactionmatrix, runs=2000)

Arguments

interactionmatrix

square interaction matrix with winner in rows and losers in columns, for example the output from creatematrix

runs

number of randomly generated sequences based on the interactions in the matrix

Value

list of length 2. The first element contains a matrix with the final ratings of each individual from each random sequence. IDs are in the columns, each run is represented as one row. The second element of the list contains the original interaction matrix.

Author(s)

Christof Neumann

Examples

1
2
3
4
5
data(adv)
SEQ <- elo.seq(winner=adv$winner, loser=adv$loser, Date=adv$Date)
mat <- creatematrix(SEQ)
res <- randomelo(mat, 10)
data.frame(ID=colnames(res[[1]]), avg=round(colMeans(res[[1]]),1))

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