(Sorry about the poor phrasing of the question)
My dataset contains variables such as country and prevalence of obesity, for 34 countries. I want to create a new value for country variable that will be the average of obesity of all the countries, i.e there will be 35 categories under the country variable. Is there any command to do that in Stata 14.
Related Posts with Creating a value that equals the average of other values for the same variable
How to write a heckman selection model whose second stage is a finite mixture modelDear statalist: I want to do a heckman seclection model whose second stage is a fmm by joint maximu…
To "xi" or not to "xi"?Dear All, I know that, in general, whether to add prefix such as "xi" does not matter for estimation…
Displaying ticks on axis while using burd schemeI am using burd scheme for charts. I like this scheme visual for everything, except that I would lik…
Interpreting regression coefficients in terms of standard deviationHi! I feel it's more of an econometrics/statistics question, but I would also want to learn how I c…
delete observations conditionallyDear All, I find this question here (https://bbs.pinggu.org/forum.php?mod...=1#pid57289524). The dat…
Subscribe to:
Post Comments (Atom)
0 Response to Creating a value that equals the average of other values for the same variable
Post a Comment