measure_meta_reliability: Evaluate the Discrimination and Stability for Given Metrics

Description Usage Arguments Value Examples

Description

Evaluate the Discrimination and Stability for Given Metrics

Usage

1
2
measure_meta_reliability(boot_seasons, stat_seasons, player_col, season_col,
  attempt_col, min_attempts, stat_cols)

Arguments

boot_seasons

Data frame of bootstrapped statistics with the provided player_col, season_col, and stat_cols.

stat_seasons

Data frame of statistics with the provided player_col, season_col, and stat_cols.

player_col

String indicating the name of the column in the data sets standing for the player name.

season_col

String indicating the name of the column in the data sets standing for the season.

attempt_col

String indicating the name of the column to filter the data on.

min_attempts

Number of minimum of the attempt_col that a player must have to be included.

stat_cols

String vector of the statistics for which the discrimination and stability will be calculated for.

Value

Data frame with three columns (1) Statistic - which is the name of one of the stats, (2) Discrimination - the average discrimination of the Statistic over all provided seasons, (3) Stability - the stability for the Statistic over all the provided seasons.

Examples

1
2
3
4
5
# Calculate the discrimination and stability for QB stats:
qb_reliability <-
measure_meta_reliability(qb_boot_seasons,qb_seasons,
"Player_ID_Name", "Season", "Total_Plays", 100,
c("total_WAR", "Comp_Perc", "Success_Rate"))

ryurko/nflWAR documentation built on May 9, 2019, 7:37 a.m.