(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
Regression with multiple dependent variablesHi, I am trying to run a set of logit models using the following formula, but it is not working. Ca…
cmmixlogit does not convergeHi, I am facing slight issues with the cmmixlogit command, which worries me a bit. I am working wit…
Comparing two string variables and extract difference into a new variableHi, I am trying to tackle the problem of comparing text between two string variables and identify (…
Looping to create marginsplots for different moderators but how to get the same y-axis?Hi everybody I am researching how outsourcing affects employees in terms of income, employment, and…
Reference on manipulation of locals/macros/listsI would like to learn more how to work with locals to store objects and then add, remove things, man…
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