loopless_sim: 'Loopless' simulation

View source: R/league.R

loopless_simR Documentation

'Loopless' simulation

Description

'Loopless' simulation

Usage

loopless_sim(
  nsims = 1e+05,
  cores = NULL,
  schedule = HockeyModel::schedule,
  scores = HockeyModel::scores,
  params = NULL,
  season_sofar = NULL,
  likelihood_graphic = TRUE,
  odds_table = NULL
)

Arguments

nsims

number of simulations to run (approximate)

cores

number of cores in parallel to process

schedule

games to play

scores

Season to this point

params

The named list containing m, rho, beta, eta, and k. See updateDC for information on the params list

season_sofar

The results of the season to date

likelihood_graphic

whether to create a likelihood graphic

odds_table

a table of odds for all games in schedule. Null, unless provided. Should be similar to the output of remainderSeasonDC(odds=TRUE), which is a data.frame of HomeTeam, AwayTeam, HomeWin, AwayWin, Draw, GameID and Date

Value

a two member list, of all results and summary results


pbulsink/HockeyModel documentation built on Dec. 16, 2024, 8:03 a.m.