Statalist The Stata Listserver


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

st: difference in residuals


From   Cinzia Rienzo <[email protected]>
To   [email protected]
Subject   st: difference in residuals
Date   Thu, 5 Apr 2007 10:55:28 +0100 (BST)

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/



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