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...
Interacting variables using command reg2hdfeHello, I have the following database: Code: * Example generated by -dataex-. To install: ssc inst…
Difference between R2 measures with "xtreg"- and with "reg"-commandDear Community, for my master thesis I am conducting a Difference-in-Differences-Analysis. More spe…
Help with adjusted kaplan meier curvesHi all, I am a medical student attempting to use STATA MP 16.1 to create adjusted KM curves. I was …
Generate and ReplaceGood day Stata Friends, I am trying to generate and replace a variable in Stata. My study is on ad…
Multinomial Logistic Regression - help needed!Hi all, I'm running a multinomial logistic regression and have 2 categories within my variable. Aft…
Subscribe to:
Post Comments (Atom)
0 Response to Individual Cross sectional regressions by firm and obtaining residuals... Please help me...
Post a Comment