predict.elo.winpct {elo}R Documentation

Make Predictions on an elo.winpct Object

Description

Make Predictions on an elo.winpct Object

Usage

## S3 method for class 'elo.winpct'
predict(object, newdata, ...)

Arguments

object

An object of class "elo.winpct".

newdata

A new dataset containing the same variables as the call that made object. If missing, the predicted win probabilities from object will be returned.

...

Other arguments.

Value

A vector of win probabilities.

See Also

predict.elo.running

Examples

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)

[Package elo version 2.0.0 Index]