View source: R/goalmodel_misc.R
expg_from_probabilities | R Documentation |
This function converts outcome probabilities into expected goals, assuming an underlying Poisson distribution, or a Dixon-Coles-Poisson distribution with known dependence paramater rho.
expg_from_probabilities(probabilities, rho = 0, uprx = 75)
probabilities |
A 3-column matrix of win-draw-lose probabilities. |
rho |
numeric. Value for the Dixon-Coles adjustment parameter. Default is 0, which is the same as no adjustment. |
uprx |
numeric. The upper limit for evaluating the poisson distribution. |
A list with two elements. The first, expg, is a two-column matrix of expected goals. The second, sq_error, is a numeric vector indicating the how well the expected goals matches the probabilities using the poisson distribution.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.