poisson_build_model_data: Build model data poisson

Description Usage Arguments Value

View source: R/poisson_model.R

Description

Reformat the results data into an appropriate format for modelling using the basic, time-weighted Poisson model

Usage

1
2
3
4
5
6
7
8
poisson_build_model_data(
  results,
  x1,
  x2,
  current_date,
  xi = 0.0016,
  weight_cut_off = NA
)

Arguments

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

Value

formatted tibble ready for using poisson_fit


neilcuz/panenkar documentation built on June 19, 2021, 7:31 p.m.