updateDC: Update Dixon Coles parameters

View source: R/dixon-coles.R

updateDCR Documentation

Update Dixon Coles parameters

Description

This function updates the model parameters to best fit the provided data. The parameters for this model are as follows:

  • m is the result of the main model fit and contains team attack and defense strengths, plus home ice advantage terms

  • rho is the Dixon-Coles low scores adjustment term.

  • beta is the Weibull distribution's 'shape' parameter. This is used with eta to produce a curve multiplied by the diagonal score possibility matrix to enhance the odds of tie games

  • eta is the Weibull distribution's 'scale' parameter. See above for its importance

  • k is the multiplication factor used with the Weibull distribution to enhance ties

Usage

updateDC(
  scores = HockeyModel::scores,
  currentDate = Sys.Date(),
  save_data = TRUE
)

Arguments

scores

scores, if not then HockeyModel::scores is used

currentDate

Current Date, usually today but useful to set a different date if back calculating results

save_data

Whether to save parameters to the package.

Value

a named list containing m, rho, beta, eta and k values for the model.

See Also

m, rho, beta, eta, k


pbulsink/HockeyModel documentation built on Dec. 16, 2024, 8:03 a.m.