updateDC | R Documentation |
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
updateDC(
scores = HockeyModel::scores,
currentDate = Sys.Date(),
save_data = TRUE
)
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. |
a named list containing m, rho, beta, eta and k values for the model.
m, rho, beta, eta, k
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.