BTresiduals {BradleyTerry} | R Documentation |
Computes player-specific residuals from a model object of class
BTm
, suitable for diagnostic checking of a predictor involving
player-level covariates.
BTresiduals(model)
model |
a model object for which inherits(model, "BTm") is
TRUE |
The residuals returned by BTresiduals
are weighted means of
working residuals, with weights equal to the binomial denominators in
the fitted model. These are suitable for diagnostic model checking,
for example plotting against candidate predictors.
A numeric vector of length equal to the number of players, with a "weights" attribute.
David Firth
Firth, D. (2005) Bradley-Terry models in R. Journal of Statistical Software, to appear.
data(citations) origin <- factor(c("UK", "USA", "USA", "UK")) citeModel2 <- BTm(citations ~ origin) BTresiduals(citeModel2)