Statalist The Stata Listserver


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

Re: st: difference in residuals


From   Cinzia Rienzo <[email protected]>
To   [email protected]
Subject   Re: st: difference in residuals
Date   Thu, 5 Apr 2007 14:33:35 +0100 (BST)

thanks Marteen, 
for glm i used:  predict resglm
for ols i use: predict resols, resid

is this correct?
but when i use the predict of Glm i get (almost) the same result!

cinzia



Maarten buis wrote:


>Looking at the resglm results I don't think they are the residuals but
>the linear predictor. Did you correctly use -predict- here (the options
>of predict after -glm- are different than those after -regress-).
>
>Hope this helps,
>Maarten
>
>--- Cinzia Rienzo <[email protected]> wrote:
>
>> Dear all,
>>  
>> i am replicating a paper so i know the results i should get; the aim
>> is 
>> to analyse the residual of a regression; 
>> the problem is that  when i regress the following:
>> 
>> glm  lwage1 age  educ educage educage2 educage3 educage4 [aw=hwt]
>> 
>> i obtain the same results as the author exept for the variance gap of
>> 
>> the 90-10 centile.
>> 
>> When instead i regress the following:
>> reg  lwage1 age  educ educage educage2 educage3 educage4 [aw=hwt]
>> i get the same 90-10 gap centile but the other results are different.
>> 
>> Both regressions give the same coefficient but the residual are 
>> different: 
>> 
>> Variable |       Obs        Mean    Std. Dev.       Min        Max
>> ------------+--------------------------------------------------------
>>  resols |   1761676   -.0012382     .454438  -2.421267   3.340183
>>  resglm |   1761676     1.77811    .3409537   .6651884  2.437594
>> 
>> Could you please suggest me what could be the problem or is it 
>> methodologically not correct to work with the two regressions and 
>> therefore with the two residuals?
>> Hope the problem is clear.
>> 
>> Best
>> 
>> Cinzia
>> *
>> *   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/
>> 
>
>
>-----------------------------------------
>Maarten L. Buis
>Department of Social Research Methodology
>Vrije Universiteit Amsterdam
>Boelelaan 1081
>1081 HV Amsterdam
>The Netherlands
>
>visiting address:
>Buitenveldertselaan 3 (Metropolitan), room Z434
>
>+31 20 5986715
>
>http://home.fsw.vu.nl/m.buis/
>-----------------------------------------
>
>
>		
>___________________________________________________________ 
>The all-new Yahoo! Mail goes wherever you go - free your email address 
from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html
>*
>*   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/
>
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index