Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 65096

Replace values with translatons

$
0
0
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:

Code:
 local i=1
while `i'<=17 {
    replace wash_g_`i'=wash_g_`i'_eng
    local i=`i'+1
    }
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?

Viewing all articles
Browse latest Browse all 65096

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>