Dugout Value
Baseball research on pitching, hitting, and projections, plus tools for comparing players, contracts, and trade value.
翻譯準備中
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證AFL play-by-play data and player contribution scores
翻譯準備中
取自儲存庫 README
正在載入完整 README。 以下為已儲存的摘錄。
TORP ratings, match predictions and season simulations built with this package are published, updated after every round, at inthegame.blog/afl.
torp is an R package for AFL analytics. It provides player ratings
(TORP), expected points and win probability models, season simulations,
and easy access to processed AFL data.
All data is stored as parquet files on
torpdata GitHub releases and
loaded on demand.檢視完整 README ↗TORP ratings, match predictions and season simulations built with this package are published, updated after every round, at inthegame.blog/afl.
torp is an R package for AFL analytics. It provides player ratings (TORP), expected points and win probability models, season simulations, and easy access to processed AFL data.
# install.packages("devtools")
devtools::install_github("peteowen1/torp")
# For the latest pre-trained models
devtools::install_github("peteowen1/torpmodels")
All data is stored as parquet files on torpdata GitHub releases and loaded on demand.
library(torp)
# Play-by-play data
pbp <- load_pbp(2025, rounds = 1:10)
# Player statistics
player_stats <- load_player_stats(2025)
# Match results and fixtures
results <- load_results(2025)
fixtures <- load_fixtures(all = TRUE)
# All available data (2021+)
pbp_all <- load_pbp(TRUE, rounds = TRUE)
TORP blends two independent rating systems: EPR (from play-by-play data) and PSR (from box-score stats via Bayesian estimation + glmnet). Per-game equivalents EPV and PSV measure single-game contribution.
# Career TORP ratings (EPR + PSR blend)
ratings <- torp_ratings()
# Per-game values (EPV + PSV + torp_value)
game_ratings <- player_game_ratings(season_val = 2026)
# Season totals
season_totals <- player_season_ratings(2026)
# Bayesian stat ratings (per-stat next-game predictions)
stat_ratings <- load_player_stat_ratings(2026)
Three core models add expected points, win probability, and shot outcome predictions to play-by-play data.
pbp <- load_pbp(2025, rounds = 1:5)
pbp_clean <- clean_pbp(pbp)
# Add model predictions
pbp_ep <- add_epv_vars(pbp_clean) # Expected points
pbp_wp <- add_wp_vars(pbp_ep) # Win probability
# Simulate remaining matches based on TORP ratings
sim_result <- simulate_season(sim_teams, sim_games)
| Package | Role | Links |
|---|---|---|
| torp | Core analytics, data loading, ratings, models | GitHub |
| torpdata | Processed AFL data via GitHub releases (parquet) | GitHub |
| torpmodels | Pre-trained models via GitHub releases (RDS) | GitHub |
Data flows from the AFL API (via torp’s get_afl_*() functions) through
torp’s cleaning pipeline into torpdata, with models stored in
torpmodels.
vignette("getting-started") – Installation and data loadingvignette("torp-guide") – Ratings, models, data architecture, and
simulationMIT