get_adv_mat: Get advantage matrix from a mELO model

Description Usage Arguments Value Examples

View source: R/get_adv_mat.R

Description

Returns the player to player advantage/disadvantage matrix for a mELO model. the matrix is calculated as C Ω C'.

Usage

1
get_adv_mat(model)

Arguments

model

a mELO_rating model created with a mELO() function.

Value

a matrix

Examples

1
2
3
4
5
6
7
# rock paper scissors model
rps_model <- mELO(rps_df, k=1)
get_adv_mat(rps_model)

# rock paper scissors fire water model
rpsfw_model <- mELO(rpsfw_df, k=2)
get_adv_mat(rpsfw_model)

dclaz/mELO documentation built on May 17, 2021, 2:27 a.m.