Home › Forums › ASREG : Rolling window and Fama-MacBeth Regressions › asreg: estimate regression by year and sector in Stata › Reply To: asreg: estimate regression by year and sector in Stata
bys firmid year means that the regression will be run on each year within each firmid, in your dataset, there are only one observation for each firmid per year, therefore, regression cannot be estimated on a single observation.