Learn R Programming

sport (version 0.2.1)

predict.rating: Predict rating model

Description

Predict rating model

Usage

# S3 method for rating
predict(object, newdata, ...)

Value

probabilities of winning challenge by player over his opponent in all provided events.

Arguments

object

of class rating

newdata

data.frame with data to predict

...

optional arguments

Examples

Run this code
glicko <- glicko_run(
  data = gpheats[1:16, ],
  formula = rank | id ~ player(rider)
)
predict(glicko, gpheats[17:20, ])

Run the code above in your browser using DataLab