View source: R/goalmodel_misc.R
expg_from_ou | R Documentation |
From a probability of goals scored being below a given number (like 2.5), compute the expected number of goals scored, assuming an underlying Poisson distribution.
expg_from_ou(probability, ou = 2.5, under = TRUE, upperlim = 10)
probability |
Vector of probabilities for number of goals scored being less (or greater) than ou. |
ou |
The limit the probability refers to. Default is 2.5. |
under |
Logical indicating whether the probabilities are for 'under' (TRUE, default) or 'over' (FALSE). |
upperlim |
Numeric giving the upper limit for expected goals the estimating procedure will consider. |
A numeric vector with expected number of goals.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.