
Aggregate Team Stat Ratings for Match Prediction
Source:R/player_stat_value.R
aggregate_team_stat_ratings.RdSums the top-11 players' stat ratings per team per match, producing the feature matrix used by the glmnet margin model.
Arguments
- stat_ratings
data.table from
estimate_player_stat_ratings.- match_data
data.table with match_id, team1, team2 columns and player-team assignments.
- stat_defs
data.frame from
stat_rating_definitions.