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
Related Posts with Mean of means, with means obtained from by year, sort + weigths
Help with subinstrHi, I need help removing " ' " from some observations from one variable 'ccccccc 'errrrrrrr 'rtrtrt…
xtheckman: Heckman estimation of dynamic panel data with sample selectionDear Stata users, I want to apply a Heckman estimation to a dynamic panel data with sample selection…
PPML gravity estimation with disaggregated dataHello, I have a panel dataset of bilateral trade disaggregated at the HS4 sector level and I would l…
Margins (and marginsplot) do not produce a result after cmclogitDear all, I am running the following cmclogit (conditional logit / McFadden logit) model (and other…
xtabond2 help and adviceHello I have a panel data with firm-year data. number of firms approx 1000 and number of years 10 I…
Subscribe to:
Post Comments (Atom)
0 Response to Mean of means, with means obtained from by year, sort + weigths
Post a Comment