Dear Urania, The residuals method for glm objects can compute several kinds of residuals; the default is deviance residuals. See ?residuals.glm for details and references.
I hope this helps. John -------------------------------- John Fox Department of Sociology McMaster University Hamilton, Ontario Canada L8S 4M4 905-525-9140x23604 http://socserv.mcmaster.ca/jfox -------------------------------- > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Urania Sun > Sent: Thursday, November 24, 2005 1:36 PM > To: [email protected] > Subject: [R] residuals in logistic regression model > > In the logistic regression model, there is no residual > > log (pi/(1-pi)) = beta_0 + beta_1*X_1 + ..... > > But glm model will return > > residuals > > What is that? > > How to understand this? Can we put some residual in the > logistic regression model by replacing pi with pi' (the estimated pi)? > > log (pi'/(1-pi')) = beta_0 + beta_1*X_1 + .....+ ei > > Thanks! > > [[alternative HTML version deleted]] > > ______________________________________________ > [email protected] mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
