Description Usage Arguments Details Value See Also Examples

Computes deviance and Pearson residuals for `eba`

objects.

1 2 |

`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.

1 2 3 4 | ```
data(celebrities) # absolute choice frequencies
btl1 <- eba(celebrities) # fit Bradley-Terry-Luce model
sum( resid(btl1)^2 ) # deviance G2
sum( resid(btl1, "pearson")^2 ) # Pearson X2
``` |

eba documentation built on May 29, 2017, 4:26 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.