BTresiduals {BradleyTerry}R Documentation

player-specific residuals from a Bradley-Terry model

Description

Computes player-specific residuals from a model object of class BTm, suitable for diagnostic checking of a predictor involving player-level covariates.

Usage

BTresiduals(model)

Arguments

model a model object for which inherits(model, "BTm") is TRUE

Details

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.

Value

A numeric vector of length equal to the number of players, with a "weights" attribute.

Author(s)

David Firth

References

Firth, D. (2005) Bradley-Terry models in R. Journal of Statistical Software, to appear.

See Also

BTm, BTabilities

Examples

data(citations)
origin <- factor(c("UK", "USA", "USA", "UK"))
citeModel2 <- BTm(citations ~ origin)
BTresiduals(citeModel2)

[Package BradleyTerry version 0.8-7 Index]