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...
How to Estimste using regressionHave i done ii) wrong way around. https://imgur.com/a/1yQhvqq (Ignore answer after ik it's wrong an…
Combination of quarters belonging to different year into one yearHi all, I have a dataset with monthly observations, the subset is as follows. However, here in the …
Creating start and stop time-variables for continuous time dependent exposure and running a Cox modelHi All I hope you can help me with this query. I have attached a simplified dataset with all the va…
reghdfe for multi- clusteringHi all, I have a panel data for 477 firms for 2006 to 2016 and need to use two way fixed effects at…
Test for clusteringIn analysing data from a cohort of 6500 children recruited from 3500 families, I would like to exami…
Subscribe to:
Post Comments (Atom)
0 Response to Individual Cross sectional regressions by firm and obtaining residuals... Please help me...
Post a Comment