Re: [R] Understanding glm family documentation: dev.resids

2008-11-14 Thread Heather Turner
Hi Peter, You are right, the dev.resids function does compute the square of the deviance residuals. Equivalently, dev.resids computes the d_i values, where d_i is the contribution of the $i$th observation to the deviance. The d_i can be defined directly and it is useful to have a function that re

[R] Understanding glm family documentation: dev.resids

2008-11-12 Thread Peter Dunn
Hi all Consider the family function, as used by glm. The help page says the value of the family object is a list, one element of which is the following: dev.resids function giving the deviance residuals as a function of (y, mu, wt). But reading any of the family functions (eg poisson) sh