Site icon Stata.Professor : Your Partner in Research

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.
Exit mobile version