On 2010-02-09, I posted this example on strategies for labeling values for lots of variables efficiently in Stata. Today I discovered a function in NJC's - egenmore - extension of - egen - that I think is easier to use and, in many cases, faster to implement than the combination of -labutil- and -multencode- that I had suggested in my Feb 9 posting; so, to extend my previous example, here how we could label those variables using -egen- and the function "ston()" (scroll to the bottom to see the UPDATED code): *-------------------------------------------------BEGIN CODE clear **this first bloc will create a fake dataset, run it all together** input str12 region regioncode str20 quest1 str20 quest2 str20 quest3 "Southwest" 1 "Strongly Agree" "Strongly Disagree" "Disagree" "West" 2 "Agree" "Neutral" "Agree" "North" 3 "Disagree" "Disagree" "Strongly Disagr
Eric A. Booth :: Notes on social science research, Stata, and OSX programming ::