p1x2: Compute 1x2 probabilities from expected goals.

View source: R/goalmodel_predict.R

p1x2R Documentation

Compute 1x2 probabilities from expected goals.

Description

Compute 1x2 probabilities from expected goals.

Usage

p1x2(expg1, expg2, model = "poisson", dispersion = NULL, rho = NULL, uprx = 25)

Arguments

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.

Value

A matrix with 3 columns with one row for each pair of expected goals.


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