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
Sector_Year fixed effectsDear all, I have a question relating to country_sector and sector_year fixed effects. I am estimati…
Heckman sample selection & ivregI'm trying to estimate the union wage premium. There are two potential issues I need to tackle: 1. …
Forecasting with predict command not workingHey all, I'm trying to predict future numbers based on an ARIMA model but when I predict using the …
Latent class analysis: - gsem- & pseudo R-squaredDear users, This may be a dumb question, but I am trying familiarizing myself with Latent class clu…
Markov switching model with panel dataHello, I have a panel data with 90 companies across 5 years. I have the financial variables for eac…
Subscribe to:
Post Comments (Atom)
0 Response to Coefficient, SE and Residuals are same but not the predicted yhat
Post a Comment