Hi,
I have noticed that when I run the following, they produce exactly similar results for coefficients, SE and residuals. However, their predicted yhats are not similar and this is due to different constents.
My question is
If I need to use predicted yhat, not the residuals, which model will I use? And how will I know that whatever I am choosing is the correct one for yhat?
sysuse auto, clear
xtset rep
regress price mpg weight length i.rep i.trunk
predict ccc1
areg price mpg weight length i.trunk, absorb(rep)
predict ccc
reghdfe price mpg weight length, absorb (rep trunk)
predict ccc2
regress price mpg weight length i.rep i.trunk
predict bbb1, residuals
areg price mpg weight length i.trunk, absorb(rep)
predict bbb, residuals
reghdfe price mpg weight length, absorb (rep trunk) resid
Related Posts with Coefficient, SE and Residuals are same but not the predicted yhat
Variance in dependent variableHI, We are running an analysis that estimates promotion hazards for 13,534 workers of different rac…
Generating a new var using loopsDear statalist forum members, For the below sample data, I would like to subtract X1 from X5 and sav…
Omitted "Treatment" variable in DiD fixed panel regressionHi, I'm currently studying the effects of mandatory CSR disclosure on firm performance. My data set …
Bar graphs with min/max/mean Hi all, Is there any way to do a bar graph like this in Stata? Also, to add sample sizes (n=20, or…
Multi Level ModellingHi everyone, I new to this forum so i hope I'm not violating any forum rules. I've the following qu…
Subscribe to:
Post Comments (Atom)
0 Response to Coefficient, SE and Residuals are same but not the predicted yhat
Post a Comment