Hi,
I am running the following model
bys industry year: reg y x
predict e, residuals
Here, if I use predict residuals as above, I don't get correct residuals by industry and year. I tried the following
bys industry year: predict e, residuals
but it is a wrong syntax.
Can anyone please help me?
Related Posts with Predicting residuals by industry and year
Panel ARDL Optimal Lag Selectin Loopforval i=1/24 { qui xtreg y x1 x2 x3 x4 x5 /// l`i'.y l`i'.x1 l`i'.x2 l`i'.x3 l`i'.x4 l`i'.x5, fe qu…
grqreg: plot aftyer QR, "xtitle(Quantile) is not a twoway plot type" errorStata users, I'am using the "sqreg" and "grqreg" commands to draw graphs after QR. However, the fol…
Using coefplotHi, I am using coefplot command to represent my results from different regressions. Code: reg nchi…
Multiplication using genHello all, I have generated a new variable using gen: gen acmeanweekly = (aud1avfreq_7*aud2avamoun…
A histogram to show posterior distributions after VARDear all I have seen in a few papers in macroeconomics (which is not my field of expertise), histog…
Subscribe to:
Post Comments (Atom)
0 Response to Predicting residuals by industry and year
Post a Comment