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