Description Usage Arguments Value
View source: R/poisson_model.R
Reformat the results data into an appropriate format for modelling using the basic, time-weighted Poisson model
1 2 3 4 5 6 7 8 | poisson_build_model_data(
results,
x1,
x2,
current_date,
xi = 0.0016,
weight_cut_off = NA
)
|
results |
results database |
x1 |
home goals, uses tidy eval so can specify half time goals if you like |
x2 |
away goals, uses tidy eval so can specify half time goals if you like |
current_date |
what date to calculate the exponential time weight from |
xi |
the time weight parameter |
weight_cut_off |
if a weight is less than this cut off that row is dropped from the model data for efficiency purposes |
formatted tibble ready for using poisson_fit
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.