Some datasets are labeled with full lowercase, and I end up with charts and tables showing the results for Egypt, Jordan, and Saudi Arabia instead of the names of the countries in the top.
I guess a string function proper()can do something for me, but I don’t find the right way to write code for Stata 11 that will use all the value labels for this variable.
I basically need to run a function proper()for all variable value labels, and then assign them to a variable. Is it possible to use loops foreachand macros in Stata?
source
share