optim_xi_poisson_gd: Optimise xi Poisson Goal Difference

Description Usage Arguments Value

View source: R/poisson_model.R

Description

Optimise xi parameter of time weighting for poisson model using the difference in goal difference as the evaluation metric

Usage

1
2
3
4
5
6
optim_xi_poisson_gd(
  xi,
  results_estimate_xi,
  match_rows,
  goal_difference_actual
)

Arguments

xi

the value of xi to use in the time weight

results_estimate_xi

results dataset to estimate xi off of

match_rows

rows in the results dataset to estimate xi from

goal_difference_actual

home_goals - away_goals, what really happened to compute mean square error of predicted on

Value

mean square error in actual and predicted goal difference


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