Hello Everyone!
I am totally new to STATA, and I have a brief question about running individual cross sectional regression and obtaining residuals.
Basically my data set ONLY has 1 single year. so it is a crosssectional data set. (1300 unique firms)
My regression equation is : reg executivepayavg size roa lev ret mb for mown option salesgrowth netsales
I would like to run cross sectional regression BY EACH FIRM and obtain the error term (residuals) so that is 1300 cross sectional regressions.
I tried using Bysort firmcode: reg executivepayavg size roa lev ret mb for mown option salesgrowth netsales but it didn't work.. Firmcode is the unique firm specific code on my data set.
Can anyone help me out please???? Thank you so much!
Related Posts with How to run individual cross sectional regression and obtaining residuals?..
Problems with dates (type mismatch r(109))Dear community, I am new to stata and have a problem I cannot solve. I have dates which are in the f…
Specify twoway graph attributes with variableHi all, I'm trying to figure out a quicker way to create readable charts. Often when I plot scatter…
reshaping in stataI have some data in which I have for each row the data by center, and I need to have them by student…
Single effect estimate for a categorical interaction term?!hi all! I'm working on a project looking at the effect of an intervention on a continuous outcome v…
Loop Append Multiple Waves of dtaHello everyone, I know that this has been addressed and answered multiple times, however I am very …
Subscribe to:
Post Comments (Atom)
0 Response to How to run individual cross sectional regression and obtaining residuals?..
Post a Comment