
Calculate PSR Components: PSR + BatV + BowlV
Source:R/player_stat_value.R
calculate_psr_components.RdApplies three sets of glmnet coefficients to decompose PSR into batting value (BatV) and bowling value (BowlV).
Arguments
- ratings
data.table with
{stat}_ratingcolumns fromestimate_player_stat_ratings.- coef_df
data.frame with columns
stat_nameandbeta. Optionallysdfor standardization.- batv_coef_df
Coefficient data.frame for the batting model.
- bowlv_coef_df
Coefficient data.frame for the bowling model.
- center
Logical. If TRUE (default), subtract league mean so PSR represents value above average.