Calculate the update value for a given Elo matchup. This is used in elo.calc, which reports the post-update Elo values. This is vectorized.

elo.update(wins.A, ...)

# S3 method for default

# S3 method for formula
elo.update(formula, data, na.action, subset, k = NULL, ...)

## Arguments

wins.A Numeric vector of wins by team A. Other arguments (not in use at this time). Numeric vectors of elo scores. Numeric vectors of elo scores. A constant k-value (or a vector, where appropriate). Numeric vectors to adjust elo.A and elo.B by. Numeric vectors to adjust elo.A and elo.B by. 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.

## Value

elo.prob, elo.calc, elo.model.frame
elo.update(c(1, 0), c(1500, 1500), c(1500, 1600), k = 20)