I've been trying to synchronize value labels from multiple surveys. I first decoded all numeric variable using the "decode" command, giving me a set of variables beginning with "s_".
I am using "multencode" to re-create numeric variables that I had "decoded". The code below works to loop through all the variables that begin with "s_" (the string variables).
Code:
set more off foreach v of var s_*{ multencode `v', gen(E`v') }
I would appreciate some help in fixing this code.
thanks - Yy
0 Response to Multencode: New Variables Question
Post a Comment