Hi Statalist. I have ~200 variables that I pulled for translation, and now I'm trying to replace the existing values with their translations. I've been trying something along the lines of this:
but since the translation doesn't exist for all 17 versions of that variable, I get an error. Is there a quicker way of doing this for this entire subset of variables?
Code:
local i=1 while `i'<=17 { replace wash_g_`i'=wash_g_`i'_eng local i=`i'+1 }