I am working with a data set that has five implicate data sets. For each data set, I am running a regression. After these regressions are finished, I want to average the e() results and then store the averaged result. Below, is an example of what I mean, though I am sure my nomenclature is incorrect:

reg x y1 y2 y3 if rep = 1
reg x y1 y2 y3 if rep = 2 ...
reg x y1 y2 y3 if rep = 5

gen varz = average(e_y11, e_y12, e_y13, e_y14, e_y15)

(and then store varz, and display it through estout)

This is a simplified example of what I am trying to do, but if anyone has suggestions for the above, I can then apply it to my code. Thank you.