plot_wins_ratio: Plot True Ratio vs EPP Probability

View source: R/plot_wins_ratio.R

plot_wins_ratioR Documentation

Plot True Ratio vs EPP Probability

Description

Plot of an empirical probability of winning versus probability of winning estimated from EPP values.

Usage

plot_wins_ratio(epp, random_sample = NULL, random_state = NULL)

Arguments

epp

epp_results. The result of a function calculate_epp.

random_sample

Numeric. If not NULL random sample fraction of Players is sampled from the set of all Players.

random_state

Numeric. Seed for sampling Players. Used only when random_sample is not NULL.

Details

Naming convention, such as Player, Rounds, etc. comes from Gosiewska et al. (2020).

Value

gg

Examples

library(EloML)
data(auc_scores)
epp <- calculate_epp(
  auc_scores[1:100, ],
  keep_columns=TRUE,
  keep_model = TRUE,
  estimation ="glm"
  )
plot_wins_ratio(epp)


ModelOriented/EloML documentation built on June 22, 2022, 4:53 a.m.