Learn R Programming

EloRating (version 0.46.8)

optistart: optimize start values

Description

experimental function to test different sets of randomly selected start values

Usage

optistart(eloobject, spread = 200, runs = 2000, doplot = FALSE,
  initialcohort = TRUE)

Arguments

eloobject

output from elo.seq

spread

numeric, the standard deviation of the ratings to be tested (by default 200)

runs

numeric, number of inital ratings to be tested (by default 2000)

doplot

logical, should the distribution of log likelihoods be plotted

initialcohort

logical, not yet implemented

Value

a list with multiple items:

the item $best reflects the optimal start values found

Examples

Run this code
# NOT RUN {
set.seed(123)
xdata <- randomsequence(8, 100)$seqdat
res1 <- elo.seq(xdata$winner, xdata$loser, xdata$Date)
ores <- optistart(res1)
res2 <- elo.seq(xdata$winner, xdata$loser, xdata$Date, startvalue = ores$best)
eloplot(res1)
eloplot(res2)
# }

Run the code above in your browser using DataLab