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

View source: R/randomeloextract.R

randomeloextractR Documentation

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

Author(s)

Christof Neumann

Examples

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")

gobbios/EloRating documentation built on July 19, 2024, 4:05 a.m.