Skip to contents

Creates a configuration object for simulations.

Usage

create_simulation_config(
  simulation_type = "season",
  event_name = "Indian Premier League",
  season = "2024",
  n_simulations = 10000,
  random_seed = 42,
  use_model = TRUE,
  model_version = "v1.0"
)

Arguments

simulation_type

Character. Type: "match", "season", "playoffs"

event_name

Character. Event to simulate (e.g., "Indian Premier League")

season

Character. Season to simulate (e.g., "2024")

n_simulations

Integer. Number of Monte Carlo iterations (default 10000)

random_seed

Integer. Random seed for reproducibility (default 42)

use_model

Logical. Use trained model vs simple ELO (default TRUE)

model_version

Character. Model version to use (default "v1.0")

Value

List with simulation configuration

Examples

create_simulation_config()
#> $simulation_id
#> [1] "season_indian_premier_league_2024_20260327045045"
#> 
#> $simulation_type
#> [1] "season"
#> 
#> $event_name
#> [1] "Indian Premier League"
#> 
#> $season
#> [1] "2024"
#> 
#> $n_simulations
#> [1] 10000
#> 
#> $random_seed
#> [1] 42
#> 
#> $use_model
#> [1] TRUE
#> 
#> $model_version
#> [1] "v1.0"
#> 
#> $created_at
#> [1] "2026-03-27 04:50:45 UTC"
#> 
create_simulation_config(
  simulation_type = "match",
  event_name = "Big Bash League",
  season = "2025",
  n_simulations = 100
)
#> $simulation_id
#> [1] "match_big_bash_league_2025_20260327045045"
#> 
#> $simulation_type
#> [1] "match"
#> 
#> $event_name
#> [1] "Big Bash League"
#> 
#> $season
#> [1] "2025"
#> 
#> $n_simulations
#> [1] 100
#> 
#> $random_seed
#> [1] 42
#> 
#> $use_model
#> [1] TRUE
#> 
#> $model_version
#> [1] "v1.0"
#> 
#> $created_at
#> [1] "2026-03-27 04:50:45 UTC"
#>