Hello,

I have a regression of the form:

Code:
reg yvar xvar zvar i.year
where year is a categorical variable from 1990 to 2020. I want to store the estimates for each year and plot them in a scatter plot with a fitted regression line. Something along the lines of saving the estimates as "yearcoefficients" and the plotting
Code:
scatter year yearcoefficients || lfit year yearcoefficients
Is this possible at all?

Thank you very much!

Joan