residuals.eba {eba} | R Documentation |
Computes deviance and Pearson residuals for eba
objects.
residuals.eba(object, type = c("deviance", "pearson"), ...)
object |
an object of class eba , typically the result of a
call to OptiPt |
type |
the type of residuals which should be returned; the
alternatives are: "deviance" (default) and
"pearson" |
... |
further arguments passed to or from other methods |
Residuals are computed from the upper triangle of the paired-comparison matrix.
See help(residuals.glm)
for details.
A vector of residuals having as many elements as pairs of stimuli.
OptiPt
, residuals.glm
,
plot.eba
.
data(celebrities) # absolute choice frequencies btl <- OptiPt(celebrities) sum( resid(btl)^2 ) # Deviance sum( resid(btl, "pearson")^2 ) # Pearson chi2