(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 construct children data based on their parents' data?Hi all, I have a household dataset in which respondents' data are in a long layout but their childr…
Converting SEM (or GSEM) syntax into a diagramDear all, I am running a syntax for path analysis and CFA using gsem in Stata 15.1, I can't find how…
Mediation using Fixed Effects Negative Binomial RegressionHi all, I am conducting an analysis that is trying to perform a mediation analysis using fixed effe…
Exporting F-Statistics and p-value after ivreg2 commandDear all, I am using Code: ivreg2 command to do my analysis with Stata 15 (IC). However, I need to…
Error 9901 in Excel export_xlshwritestr(): 9901 Stata returned error export_excel_write_file(): - function returned error expo…
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