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?..
bysort query issuesHello all: I am trying to replace first row of path with "CLL" and second row of path as "RT" for _…
Shortcut for generating new variables based on many existingI have groups of variables contactoutcome_con_<y>_<x> and contactmethod_con_<y>_&l…
create a loop to convert string variables in numeric variablesHello, I am Salvatore, happy to join the Stata Forum community. I am a new user who recently started…
Replace command with non-mutually exclusive categorical dataHello, I am working with a dataset from a Twitter content analysis project and am stuck trying out …
Matching without replacement from a file of pairs for case-control and other applicationsShort version: I’m seeking a solution to how to do 1:m matching of cases and controls without replac…
Subscribe to:
Post Comments (Atom)
0 Response to How to run individual cross sectional regression and obtaining residuals?..
Post a Comment