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...
coefplot for two RegressionsAll, I am trying to plot coefficients for two regressions in the same plot. using the following code…
Looping over all string variables in datasetI have a dataset with a large number of variables (500+) and I am just realizing now that for many (…
European Health for All database (HFA-DB) PIVOT formatFellow Stata users! I want to explore and analyse the WHO- European Health for All database (HFA-DB…
pvar for stata 16 and 17Hello, i downloaded the pvar package from abrigo 2016, but when i was trying to use the command pvar…
Issues with "outreg2" sum(log)Hello everyone, I have an issue trying to use the "outreg2" command in Stata. My code is the follow…
Subscribe to:
Post Comments (Atom)
0 Response to Individual Cross sectional regressions by firm and obtaining residuals... Please help me...
Post a Comment