Dear all.
I want to generate the mean value of a time series variable over a period.
My sample code is as below.
But I want to attain a single value of its mean instead of a series.
Thanks for any help.
I want to generate the mean value of a time series variable over a period.
My sample code is as below.
Code:
egen var1 = mean(var) if yq >= 1979 & yq <= 2016
Thanks for any help.
Comment