elo functionsA helper function to create the model.frame for many elo functions.
elo.model.frame(
formula,
data,
na.action,
subset,
k = NULL,
...,
required.vars = "elos",
warn.k = TRUE,
ncol.k = 1,
ncol.elos = 2
)A formula. See the help page for formulas for details.
A data.frame in which to look for objects in formula.
A function which indicates what should happen when the data contain NAs.
An optional vector specifying a subset of observations.
A constant k-value (or a vector, where appropriate).
Other arguments (not in use at this time).
One or more of c("wins", "elos", "k", "group", "regress"),
denoting which variables are required to appear in the final model.frame.
Should a warning be issued if k is specified as an argument and in formula?
How many columns (NCOL) should k have?
How many Elo columns are expected?
elo.run, elo.calc, elo.update, elo.prob