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 Individual Cross sectional regressions by firm and obtaining residuals... Please help me...
gsem mlogit: set base categoryHi, I've estimated a latent profile analysis in Stata 17.0 with three continuous dependent variables…
Mark all observations that has one variable in commonHello, I'm quite new to stata. I have searched in this forum, but can not find the answer I need, th…
Stata graph twoway scatter ignores variable formatHi, I am trying to create a graph of means and confidence intervalls for 6 different variables (fee…
How to Append .txt fileHi, how can I append a dataset with another using files that are in .txt format? I tried to use the …
Panel vs Pooled cross sectionHi all, I want to ask for your advice. I will research the difference in wages of minority and majo…
Subscribe to:
Post Comments (Atom)
0 Response to Individual Cross sectional regressions by firm and obtaining residuals... Please help me...
Post a Comment