predict.elo.glm {elo} | R Documentation |
elo.glm
ObjectMake Predictions on an elo.glm
Object
## S3 method for class 'elo.glm' predict(object, newdata, type = "response", ...) ## S3 method for class 'elo.running' predict(object, newdata, running = TRUE, ...)
object |
An object of class |
newdata |
A new dataset containing the same variables as the call
that made |
type |
See |
... |
Other arguments. |
running |
logical, denoting whether to use the running predicted values. Only makes
sense if |
Note that the "elo.glm.running"
objects will use a model fit on all the data to predict.
A vector of win probabilities.
data(tournament) t1 <- head(tournament, -3) t2 <- tail(tournament, 3) results <- elo.glm(score(points.Home, points.Visitor) ~ team.Home + team.Visitor, data = t1, subset = points.Home != points.Visitor) predict(results) predict(results, newdata = t2)