Skip to contents

Returns a data.frame describing every stat to estimate. Each row specifies how to extract the raw value from player game data and whether it's a rate stat (Gamma-Poisson, scaled by balls) or an efficiency stat (Beta-Binomial).

Usage

stat_rating_definitions()

Value

A data.frame with columns:

stat_name

Short name used in output columns (e.g., "batting_runs")

type

"rate" or "efficiency"

source_col

Column name in player_game_data for the raw count

exposure_col

Column for the denominator (balls faced/bowled)

category

"batting", "bowling", "hawkeye_batting", "hawkeye_bowling", or "value"

higher_is_better

Logical. TRUE if higher values = better performance.

success_col

For efficiency stats: column for successes.

attempts_col

For efficiency stats: column for attempts.