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?..
Exporting instrument test results from ivreg2Following is my ivreg2 code Code: asdoc ivreg2 pro l.le l.a (rec interaction= pay ca bor),nest re…
Stochastic frontier analysis-flexible Fourier(augmented translog) cost functionHello Statalist, I am trying to do a flexible fourier analysis on stata using truncated normal dist…
How to remove rows containing ratees not in the rater list in a team?I would like to remove the rows containing ratees not in the rater list. For example, in the dataset…
How to calculate ICC1 and ICC2 with unbalanced data?Hi all, I have a problem with the -icc- command. It omits a large number of observations with unbala…
How to replace missing values for certain rows in STATAI'm wondering how to replace missing values in STATA for certain rows only (as noted above). I have…
Subscribe to:
Post Comments (Atom)
0 Response to How to run individual cross sectional regression and obtaining residuals?..
Post a Comment