Predicted rates or scorelines based on a Dixon Coles model object

# S3 method for dixoncoles
predict(object, newdata = NULL, type = c("rates",
"scorelines", "outcomes"), up_to = 50,
threshold = sqrt(.Machine\$double.eps), ...)

## Arguments

object Object of class inheriting from dixoncoles. A data frame in which to look for variables to predict Type of prediction (rates or scorelines). If type = "scorelines", the maximum number of goals for which to calculate the probability of occurring in each match. If type = "scorelines", scorelines with a probability below threshold will not be returned. Arguments passed from other methods

## Value

A list in which each element is a tibble. The contents of the tibble depends on the value supplied to the type argument. These values are enumerated for each possible value of type below:

rates

the side ("home" and "away") and the goalscoring rate of both teams

scorelines

the probability (prob) for each scoreline (hgoal and agoal)

outcomes

the probability (prob) of each outcome ("home_win", "draw" or "away_win") occurring