elo.model3: optimize k parameter and entry Elo scores

Description Usage Arguments Examples

View source: R/elo.model3.R

Description

Function to optimize k parameter and entry Elo scores

Usage

1
elo.model3(par, IA_data, all_ids, return_likelihood = T)

Arguments

par

list of parameters, with par[1] being log(k), and par[2:length(par)] being the initial elo scores of individuals

IA_data

list of interaction data, with columns "Date", "Winner", and "Loser" (in that order)

all_ids

list of all ids to rank

return_likelihood

If TRUE, returns the total likelihood based on all interactions given a particular set of parameters. If FALSE, returns a table of Elo scores based on a given set of parameters.

Examples

1
# for internal use

EloOptimized documentation built on May 2, 2019, 10:39 a.m.