expg_from_ou: Estimate the expected goals from over/under probabilities.

View source: R/goalmodel_misc.R

expg_from_ouR Documentation

Estimate the expected goals from over/under probabilities.

Description

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.

Usage

expg_from_ou(probability, ou = 2.5, under = TRUE, upperlim = 10)

Arguments

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.

Value

A numeric vector with expected number of goals.


opisthokonta/goalmodel documentation built on April 3, 2024, 1:32 a.m.