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
Readying My Data for Panelwise AnalysisHello Statalist, I have been working on a dataset in Stata for the past month or so, but have recen…
Excluding certain items/variables from queryHello, I have a big dataset and I am trying to analyse children with all congenital heart diseases(C…
Converting monthly data into quarterly for a panel with multiple variablesHi all, I am working with a panel dataset which contains the following variables: wage bin (define…
2x3 categorical interactionHi Listers, I want to make sure I am correctly interpreting my 2*3 interaction following a logistic…
How Poisson pseudo-maximum Likelihood deals with overdispersion.Dear forum, My question is more theoretical, but I hope I can find an answer here. I am running a …
Subscribe to:
Post Comments (Atom)
0 Response to Mean of means, with means obtained from by year, sort + weigths
Post a Comment