Description Usage Arguments Value Examples
Simulate a series of AFL matches
1 | simulate_matches(model, matches, n = 10000, n_cores = 1, seed = 1)
|
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 |
Ratings for teams at the end of each simulation
1 2 3 4 | data("matches")
matches1997 <- matches[matches$Season == 1997, ]
model <- aflelo_model()
simulate_matches(model, matches1997, n = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.