simulate_matches: Simulate matches

Description Usage Arguments Value Examples

View source: R/simulate.R

Description

Simulate a series of AFL matches

Usage

1
simulate_matches(model, matches, n = 10000, n_cores = 1, seed = 1)

Arguments

model

trained aflelo_model object

matches

data.frame containg matches to simulate, see matches for an example

n

number of times to run the simulation

n_cores

number of cores to use

seed

random seed set before beginning simulations

Value

Ratings for teams at the end of each simulation

Examples

1
2
3
4
data("matches")
matches1997 <- matches[matches$Season == 1997, ]
model <- aflelo_model()
simulate_matches(model, matches1997, n = 1)

lazappi/aflelo documentation built on May 17, 2019, 7:30 p.m.