View source: R/goalmodel_predict.R
p1x2 | R Documentation |
Compute 1x2 probabilities from expected goals.
p1x2(expg1, expg2, model = "poisson", dispersion = NULL, rho = NULL, uprx = 25)
expg1 |
Non-negative numeric. The expected number of goals. |
expg2 |
Non-negative numeric. The expected number of goals. |
model |
String indicating whether the goals follow a 'poisson' model (default), a Negative Binomial ('negbin'), or Conway-Maxwell-Poisson ('cmp') model. |
dispersion |
Non-negative numeric. The dispersion parameter in the Negative Binomial model or the Conway-Maxwell-Poisson model. |
rho |
Numeric. The Dixon-Coles adjustment. |
uprx |
Numeric. The upper limit for evaluating the underlying distributions. |
A matrix with 3 columns with one row for each pair of expected goals.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.