I have a large time-series dataset, which I performed regression on in order to assess how the beta changes across the time period. To generalise the results I found the mean and the median values of the beta across each period and I now want to use this in the CAPM model to estimate the expected rate of return. I am unsure about what to do for the error term, however. Is it appropriate to use the mean value of the error term that would've been produced from these regressions to include it in the model? If not, what is a better alternative?