pbtts: Compute both-teams-to-score probabilities from expected...

View source: R/goalmodel_predict.R

pbttsR Documentation

Compute both-teams-to-score probabilities from expected goals.

Description

Compute both-teams-to-score probabilities from expected goals.

Usage

pbtts(expg1, expg2, model = "poisson", dispersion = NULL, rho = NULL)

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.

Value

A numeric vector with probabilities for both teams to score.


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