residuals.eba {eba}R Documentation

Residuals for EBA Models

Description

Computes deviance and Pearson residuals for eba objects.

Usage

residuals.eba(object, type = c("deviance", "pearson"), ...)

Arguments

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

Details

Residuals are computed from the upper triangle of the paired-comparison matrix.

See help(residuals.glm) for details.

Value

A vector of residuals having as many elements as pairs of stimuli.

See Also

OptiPt, residuals.glm, plot.eba.

Examples

data(celebrities)  # absolute choice frequencies
btl <- OptiPt(celebrities)
sum( resid(btl)^2 )  # Deviance
sum( resid(btl, "pearson")^2 )  # Pearson chi2

[Package eba version 1.4-1 Index]