Skip to contents

Simulates a complete season using pre-match win probabilities. For each match, simulates the outcome based on the ELO-derived win probability.

Usage

simulate_season(fixtures, points_for_win = 2, points_for_loss = 0)

Arguments

fixtures

Data frame. Season fixtures from get_season_fixtures()

points_for_win

Integer. Points awarded for a win (default 2)

points_for_loss

Integer. Points awarded for a loss (default 0)

Value

Data frame with simulated standings

Examples

if (FALSE) { # \dontrun{
conn <- get_db_connection(read_only = TRUE)
fixtures <- get_season_fixtures("Indian Premier League", "2024", conn)
standings <- simulate_season(fixtures)
DBI::dbDisconnect(conn, shutdown = TRUE)
} # }