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?..
Sum duplicate observationsHello, I am willing to get ride of duplicate observations from my dataset. I have identified the du…
How to I simulate a random intercept and slope mixed poisson modelHi, Please could you tell me how do I simulate a random coefficient mixed poisson model? How do I …
Include slope on binscatter plotHello, I am new to Stata - I was wondering if there is a way to add the value of the slope to binsc…
Program to copy packages to local folderA recent thread on this forum inspired me to ask an opposite question of sorts. In environments wher…
xtmlogit for varying choice setHi, I have posted the question at cross validated, but I have not got any answer yet, so I repost h…
Subscribe to:
Post Comments (Atom)
0 Response to How to run individual cross sectional regression and obtaining residuals?..
Post a Comment