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
Convert double variables to floatHi, I am currently "translating" a piece of SAS code to Stata. Each step, I verify that both my Sta…
Quasi-Poisson regression commandI have been instructed to perform a quasi-Poisson regression analysis by my supervisor. I have gone …
xtheckman on stata 16Hi , I am using panel data and Xtheckman command. It keeps running endless Iterations for hours and …
Using 'forvalues' when some data files are missing in betweenI'm trying to run a loop in which I append some .dta files in multiple folders. The path looks like …
error with mi estimate: factor-variable operators not allowedHi everyone, In the code below, I am trying to compare the coefficients across two regressions. Howe…
Subscribe to:
Post Comments (Atom)
0 Response to Predicting residuals by industry and year
Post a Comment