Learn R Programming

EloRating (version 0.46.8)

randomeloextract: extract ratings from random sequences based on an interaction matrix

Description

extract ratings from random sequences based on an interaction matrix

Usage

randomeloextract(x, ID, mode = c("obj", "samp", "avg"))

Arguments

x

output from randomelo

ID

character, ID

mode

character, one of three: 1) "obj": a random value from all the sequences; 2) "samp": a random value sampled from a normal distribution with mean and sd of all randomized values; 3) "avg": the average value from all the runs

Value

numeric

Examples

Run this code
# NOT RUN {
data(adv)
SEQ <- elo.seq(winner=adv$winner, loser=adv$loser, Date=adv$Date)
mat <- creatematrix(SEQ)
res <- randomelo(mat, 10)
randomeloextract(res, "a", "samp")
randomeloextract(res, "a", "obj")
randomeloextract(res, "a", "avg")
# }

Run the code above in your browser using DataLab