predict.elo.run {elo} | R Documentation |
elo.run
ObjectMake Predictions on an elo.run
Object
## S3 method for class 'elo.run' predict(object, newdata, ...) ## S3 method for class 'elo.run.regressed' predict(object, newdata, regressed = FALSE, ...)
object |
An object of class |
newdata |
A new dataset containing the same variables as the call
that made |
... |
Other arguments to be passed to |
regressed |
See the note on |
A vector of win probabilities.
data(tournament) t1 <- head(tournament, -3) t2 <- tail(tournament, 3) results <- elo.run(score(points.Home, points.Visitor) ~ team.Home + team.Visitor, data = t1, k = 20) predict(results) predict(results, newdata = t2)