(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
Gologit 2 interpretationHi everyone, I have read Williams' article about Gologit2 model. I have some concerns about the inte…
Extracting Residuals from loop regressionsDear all, I would like to obtain my residuals from my loop regressions, but I can't find a way to e…
Results of the Hsiao procedure for the homogeneity test on panel dataHi Statalists, I work on a panel of 5 individuals and 38 years. I performed the Hsiao test to test …
Issues implementing a multivariate tobit model of 7 equationsHas anyone ever implemented successfully a mvtobit? I read though all the questions about mvtobit, b…
Set base group for 2 variables when including interaction terms in a regressionDear all, I am currently running a regression in Stata that involves an interaction term between ye…
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