optistart | R Documentation |
experimental function to test different sets of randomly selected start values
optistart(
eloobject,
burnin = 0,
spread = 200,
runs = 2000,
doplot = FALSE,
initialcohort = TRUE
)
eloobject |
output from |
burnin |
numeric, the number of interactions to be excluded from the
calculation of the (log) likelihood. This parameter is ignored if a
date range is supplied. By default |
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 |
if the plot is produced, the red line indicates the log-likelihood when all individuals are assigned the same starting value
the item $best
reflects the optimal start values found
a list with multiple items:
Christof Neumann
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.