plot_c_mat: Plot the evolution of the C matrix for a mELO model

Description Usage Arguments Value Examples

View source: R/plot_c_mat.R

Description

This function plots the evolution of the elements of the C matrix for a mELO model. The C matrix has a row vector for each player, and k columns. Where k determines the complexity of non-transitive interactions being modelled.

Usage

1
plot_c_mat(mELO_model)

Arguments

mELO_model

a mELO_rating object with type = mELO. The output of a mELO() function call.

Value

a plot.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
head(rpsfw_df)

# mELO model with k=1
rpsfw_mELO_1 <- mELO(rpsfw_df, k=1)
plot_c_mat(rpsfw_mELO_1)
    # not stable, mELO with k=1 can't accurately model the dynamics

# mELO model with k=2
rpsfw_mELO_2 <- mELO(rpsfw_df, k=2)
plot_c_mat(rpsfw_mELO_2)
    # stable, good estimates

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