elo (version 2.0.0)

elo.model.frame: Interpret formulas in elo functions

Description

A helper function to create the model.frame for many elo functions.

Usage

elo.model.frame(formula, data, na.action, subset, k = NULL, ...,
  required.vars = "elos")

Arguments

formula

A formula. See the help page for formulas for details.

data

A data.frame in which to look for objects in formula.

na.action

A function which indicates what should happen when the data contain NAs.

subset

An optional vector specifying a subset of observations.

k

A constant k-value (or a vector, where appropriate).

...

Other arguments (not in use at this time).

required.vars

One or more of c("wins", "elos", "k", "group", "regress"), denoting which variables are required to appear in the final model.frame.

See Also

elo.run, elo.calc, elo.update, elo.prob