I am using the elo package in R to calculate college football scores over the course of several decades. But I am having trouble understanding the regression function in the package:
This is the example given in the package documentation:
tournament$elo.Visitor <- 1500
elo.run(score(points.Home, points.Visitor) ~ team.Home + elo.Visitor +
regress(half, 1500, 0.2),
data = tournament, k = 20)
"Giving a logical vector identifies these matches after which to regress back to the mean. Giving any other kind of vector regresses after the appropriate groupings (see, e.g., duplicated(..., fromLast = TRUE)). The other two arguments determine what Elo to regress to (to =), and by how much to regress toward that value (by =)."
I have tried to enter "regress(half, 1500, 0.2)" on my computer but R does not recognize "half". What are they putting in there to make their regression work?