Description Usage Arguments Value Examples
Dynamic Bayesian Logit
1 2 3 4 5 6 7 8 9 10 11 |
formula |
formula which specifies the model. Unlike other algorithms in the packages (glicko_run, glicko2_run, bbt_run), this method doesn't allow players nested in teams with 'player(player | team)' and user should matchup in formula using 'player(player)'. DBL allows user specify multiple parameters also in interaction with others. |
data |
data.frame which contains columns specified in formula, and
optional columns defined by |
r |
named vector of initial players ratings estimates. If not specified
then |
rd |
rd named vector of initial rating deviation estimates. If not specified
then |
lambda |
name of the column in 'data' containing lambda values or one
constant value (eg. |
weight |
name of the column in 'data' containing weights values or
one constant (eg. |
kappa |
controls |
init_r |
initial values for |
init_rd |
initial values for |
A "rating" object is returned:
final_r
named vector containing players ratings.
final_rd
named vector containing players ratings deviations.
r
data.frame with evolution of the ratings and ratings deviations
estimated at each event.
pairs
pairwise combinations of players in analysed events with
prior probability and result of a challenge.
class
of the object.
method
type of algorithm used.
settings
arguments specified in function call.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # the simplest example
data <- data.frame(
id = c(1, 1, 1, 1),
name = c("A", "B", "C", "D"),
rank = c(3, 4, 1, 2),
gate = c(1, 2, 3, 4),
factor1 = c("a", "a", "b", "b"),
factor2 = c("a", "b", "a", "b")
)
dbl <- dbl_run(
data = data,
formula = rank | id ~ player(name)
)
dbl <- dbl_run(
data = data,
formula = rank | id ~ player(name) + gate * factor1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.