Hello,

I have obtained the mean, median, stdev by year (I have 18 years in the sample) for my expenditure variable a_rep_pos throught the following command (please note that weights have been applied):

by year, sort: sum a_rep_pos [aweight=weighta],d

I get an output for each of the years as expected. Now I want to a/some command/s that returns me 1) the mean of means , 2) the mean of medians and the the 3) the mean of the stddeviations, where means, medians and stddeviations are the results obtained from the previous command (and therefore weighted).

Could anyone help me with this?

Thank you in advance!

Best,
Linda