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
Principal component analysis for alternative proxiesI have a panel data. There are three alternative proxies (i.e. IndVar1, IndVar2, IndVar3) that basic…
Weighted database regression analysesDear Stata List, I'm having trouble completing a weighted linear regression model using NHANES data…
Principal factor (factor, pf): What if the proportion of variance accounted for by the factors is greater than 1.00 (greater than 100%)?Hello, I ran factor analysis(factor, pf) in Stata to develop factor scores for my latent variables. …
Help with re-formatting a dataset for choice modelling?Hi folks. I have data in the following format. Each observation represents a zip code, n_sites denot…
Correct estimation of panel dataHello, I am making model to analyze migration from third countries (together 20) to Slovakia, Hunga…
Subscribe to:
Post Comments (Atom)
0 Response to Mean of means, with means obtained from by year, sort + weigths
Post a Comment