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...
Accessing Files Created within SubprogramI am writing a Stata .ado program that performs the same subroutine many times. As such, I would lik…
Formatting datetime from one format to another in same variableHello everyone! I am facing some issues with my timestamp variable. The data that I have received f…
Color for figure: twoway (tsline)Hi all, I am making a figure and I would like to differentiate between colors. Specifically, I want…
How to weight the Gini coefficient decomposition?hi all, i want the Gini coefficient decomposition in Lerman-Yitzhaki's method. but "descogini" does…
graph x-axis not legibleI used the code below to generate the attached plot but the values on the x-axis are not legible. Ki…
Subscribe to:
Post Comments (Atom)
0 Response to Individual Cross sectional regressions by firm and obtaining residuals... Please help me...
Post a Comment