Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: RE: Interpretation of quadratic terms


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: RE: Interpretation of quadratic terms
Date   Mon, 8 Mar 2010 23:22:00 +0100

<>

" I think that is why you don't even get the usual resid = y 
- yhat as an option with the predict command after logit:"



How about the ones available after -glm-?



*******
sysuse auto, clear
glm foreign weight length, family(binomial 1) link(logit)
predict resp, response

logit foreign weight length
predict pred
gen res=foreign -pred
compare  resp res
*******


HTH
Martin


-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Richard Williams
Sent: Montag, 8. März 2010 23:14
To: statalist@hsphsun2.harvard.edu; 'statalist@hsphsun2.harvard.edu'
Subject: RE: st: RE: Interpretation of quadratic terms

At 05:06 PM 3/8/2010, Lachenbruch, Peter wrote:
>When you think about it, the residual will be 1-predicted or 
>0-predicted.  Thus, they will plot as two parallel straight lines.

Correct.  I think that is why you don't even get the usual resid = y 
- yhat as an option with the predict command after logit:

     Main
       pr            probability of a positive outcome; the default
       xb            xb, fitted values
       stdp          standard error of the prediction
     * dbeta         Pregibon Delta-Beta influence statistic
     * deviance      deviance residual
     * dx2           Hosmer and Lemeshow Delta chi-squared influence
statistic
     * ddeviance     Hosmer and Lemeshow Delta-D influence statistic
     * hat           Pregibon leverage
     * number        sequential number of the covariate pattern
     * residuals     Pearson residuals; adjusted for number sharing 
covariate pattern
     * rstandard     standardized Pearson residuals; adjusted for 
number sharing covariate pattern
       score         first derivative of the log likelihood with respect to
xb



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

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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   |   Site index