poisson_time_weights: Calculate Time Weights Exponential

Description Usage Arguments Value

View source: R/poisson_model.R

Description

Uses an exponetial time weighting for modelling, weighting more recent matches more strongly. This is derived from the time weighting method used by Dixon-Coles in their version of the double Poisson model

Usage

1
poisson_time_weights(match_dates, current_date, xi = 0.0016)

Arguments

match_dates

dates of football matches, date object

current_date

what date to calculate the exponential time weight from

xi

the time weight parameter

Value

vector of weights


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