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

Description Usage Arguments Value Author(s) Examples

View source: R/randomeloextract.R

Description

extract ratings from random sequences based on an interaction matrix

Usage

1
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

Author(s)

Christof Neumann

Examples

1
2
3
4
5
6
7
data(adv)
elores <- elo.seq(winner = adv$winner, loser = adv$loser, Date = adv$Date)
mat <- creatematrix(elores)
res <- randomelo(mat, runs = 10)
randomeloextract(res, "a", "samp")
randomeloextract(res, "a", "obj")
randomeloextract(res, "a", "avg")

EloRating documentation built on March 26, 2020, 7:29 p.m.