[R] residuals and glm

2007-02-22 Thread Martin Olivier
Hi all, I have some problems to compute the residuals from a glm model with binomial distribution. Suppose I have the following result : resfit-glm(y~x1+x2,weights=we,family=binomial(link=logit)) Now I would like to obtain the residuals . the command residuals(resfit) and the vector

Re: [R] residuals and glm

2007-02-22 Thread David Barron
You really need to look at ?glm and ?residuals.glm. resfit$residuals are the *working* residuals, which are not typically very useful in themselves. Far better to use the extractor function. This enables you to obtain a number of different types of residuals, but the default (and therefore the

Re: [R] residuals and glm

2007-02-22 Thread Prof Brian Ripley
On Thu, 22 Feb 2007, Martin Olivier wrote: I have some problems to compute the residuals from a glm model with binomial distribution. Suppose I have the following result : resfit-glm(y~x1+x2,weights=we,family=binomial(link=logit)) Now I would like to obtain the residuals . the command

Re: [R] residuals and glm

2007-02-22 Thread Frank E Harrell Jr
David Barron wrote: You really need to look at ?glm and ?residuals.glm. resfit$residuals are the *working* residuals, which are not typically very useful in themselves. Far better to use the extractor function. This enables you to obtain a number of different types of residuals, but the