residuals.eba.Rd
Computes deviance and Pearson residuals for eba
objects.
# S3 method for eba residuals(object, type = c("deviance", "pearson"), ...)
object | an object of class |
---|---|
type | the type of residuals which should be returned; the
alternatives are: |
... | further arguments passed to or from other methods; none are used in this method. |
Residuals are computed from the upper triangle of the paired-comparison
matrix. See residuals.glm
for details.
A vector of residuals having as many elements as pairs of stimuli.
data(celebrities) # absolute choice frequencies btl1 <- eba(celebrities) # fit Bradley-Terry-Luce model sum( resid(btl1)^2 ) # deviance G2#> [1] 78.21721#> -2logL #> 78.21721#> [1] 77.24702