[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

From |
Richard Williams <Richard.A.Williams.5@nd.edu> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
RE: st: Residuals in Logistic Regression |

Date |
Fri, 09 Apr 2004 20:37:31 -0500 |

At 08:00 PM 4/9/2004 -0500, David Airey wrote:

What's the relationship between fit and deviance residuals? How do you get the same parameter estimates and models without getting the same residuals? Just asking out loud before going to look it up myself.I think you'll need to look it up, because I can't explain it very well! After reading pp. 315-316 of Reference Manual G-M, I sort of understand it, but I'd have to read H & L to really get it. Like I said in my first message, what Stata does seems very counter-intuitive to me, but it does have its reasons.

-Dave

One thing to realize is that residuals are handled differently in regress than in logistic. In regress, -predict resid, resid- would give you Observed Y - Yhat. But, in logistic, -predict resid, resid- gives you "the Pearson residual adjusted for the number sharing the same covariate pattern." Other Logistic regression residual stats are also adjusted for the covariate pattern. So, there is this covariate pattern adjustment bit that does not have an analog in OLS regression. If you don't like it, one workaround would seem to be adding and subtracting very small numbers to cases so that no two covariate patterns were exactly identical (Or, I suppose, you could just program the calculations yourself - perhaps somebody has done it already.)

*

* For searches and help try:

* http://www.stata.com/support/faqs/res/findit.html

* http://www.stata.com/support/statalist/faq

* http://www.ats.ucla.edu/stat/stata/

**References**:**RE: st: Residuals in Logistic Regression***From:*David Airey <david.airey@vanderbilt.edu>

- Prev by Date:
**Re: st: Inconsistent Result of generating variables** - Next by Date:
**Re: st: Inconsistent Result of generating variables** - Previous by thread:
**RE: st: Residuals in Logistic Regression** - Next by thread:
**Re: st: Residuals in Logistic Regression** - Index(es):

© Copyright 1996–2017 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |