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
Cross-classified multi-level structure with longitudinal dataHi everyone, I'm using Stata version 15.1. I am trying to get the right syntax for a model. I tried…
value labelsHello everyone! Is there a way to merge value labels from a cvs file into a dataset in stata? the r…
Kaplan-Meier survival: reporting the number of patients at riskThe sts graph command comes with a handy risktable option that reports the number of patients at ris…
Generating multiple of the same report, with different resultsMy goal is to create several PDF reports using the putpdf function. With the data I have right now, …
adding regional fixed effect to system GMMHello, I'm estimating a dynamic panel model using GMM system xtabond2. I've a general question. I mi…
Subscribe to:
Post Comments (Atom)
0 Response to Mean of means, with means obtained from by year, sort + weigths
Post a Comment