Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Residuals in Logistic Regression


From   Richard Williams <Richard.A.Williams.5@nd.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Residuals in Logistic Regression
Date   Mon, 12 Apr 2004 11:30:26 -0500

At 12:11 PM 4/12/2004 -0400, Jhilbe@aol.com wrote:
The way to get what you want -- observation and not covariate patterns -- is to use -logit-, obtain the linear predictor and fit (mu) statistics using -predict-, and calculate the residuals and fit statistics using the appropriate formulae. You can find them in the manual, or in Hardin & Hilbe (2001-Stata Press). Calculating the residuals is really quiet easy.

I hope that this helps - and gives a bit of background.

Joe Hilbe
Thanks much Joe, that is very helpful. As Nick Cox suggested earlier, a simpler way of getting the residuals using observations rather than covariate patterns may be via the use of the -glm- command, e.g.

glm foreign mpg, link(logit) f(binomial)
predict glmdev, dev

I haven't tried it using other residual calculations, but this particular command gives me the same results as SPSS.

-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
FAX: (574)288-4373
HOME: (574)289-5227
EMAIL: Richard.A.Williams.5@ND.Edu
WWW (personal): http://www.nd.edu/~rwilliam
WWW (department): http://www.nd.edu/~soc

*
* 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/




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