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
How to convert back from levelsofI have a variable which has type int but each int is corresponding to a word that is meaningful, and…
Dichotomous Logistic ModelHi there Would be grateful for advice on how to fit and predict my model that has two outcomes: 1 co…
Expression for something to not be in a listSuppose I have a local macro which is a list of values; let us call it "values". Then suppose that I…
Converting data structure to a panel data structureHi all, I am trying to analyze a panel dataset. The data has three years of observations (2016, 2018…
How to rotate Stata -by- group graph horizontallyHi Statalist members, I was wondering if there's a way to replicate this R gglot graph in Stata in …
Subscribe to:
Post Comments (Atom)
0 Response to Mean of means, with means obtained from by year, sort + weigths
Post a Comment