[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: Residuals in Logistic Regression
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.
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.
I hope that this helps - and gives a bit of background.
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
WWW (personal): http://www.nd.edu/~rwilliam
WWW (department): http://www.nd.edu/~soc
* For searches and help try: