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
Transforming a string variable into a time/dateI have a string variable called month containing; "Jan 2018" till "Dec 2020". How do I separate this…
CREATE A BINARY VARIABLE IF A VARIABLE <0 ON SEVERAL YEARSDear statalist, I am trying to construct a binary variable. This binary variable should take the val…
Managing overlapping datesDear all, I am working a study on sick leave in relation to an interested outcome. However, I am st…
Computer says 'no' - How to allocate more memory for STATA[Please note: I've looked at a few other forums with similar problems, but the solutions don't seem …
Refining starting values stuck during multilevel modellingDear all, I am running a multilevel model for my paper (individuals nested in countries). For the b…
Subscribe to:
Post Comments (Atom)
0 Response to Predicting residuals by industry and year
Post a Comment