Generating the mean of the variable like :
bys id: egen vari_mean= mean(vari).
And I have six years data. (1956 1957 1958 1959 1960 1961 ).
but I want to generate the mean value of the first three years(1956 1957 1958), so what should I do?
Thank you for your attention.


雷达卡



京公网安备 11010802022788号







