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
command gmnlHello. I would like to estimate Generalized Multinomial Logit using command gmnl. But I got this err…
Multivalued treatment using inverse probability weights in teffectsDear Stata users, I want to estimate the ATE of a new policy on the number of firms, where policy h…
choosing/ extracting the highest value from multiple observationsDear Stata team, I would appreciate it if someone could shed some light on my query below: I have …
Fit plots based on multivariable linear regressionDear community, I would like to create a two-way plot of two continuous variables. STATA's fit plot…
Drop variables which are missing all observations in a yearHi! I have just appended three datasets from 2010, 2011 and 2012. They have many identical variable…
Subscribe to:
Post Comments (Atom)
0 Response to Mean of means, with means obtained from by year, sort + weigths
Post a Comment