Hi. Is it possible to do different kinds of replacements for multiple variables at the same time? For example, I'd like to tell Stata something like: Replace Var1=1, Var2=2, Var3=3 if Var4=="X".
It doesn't seem that recode would work because with recode I'd have to specify, Var1 (5=1), etc., while I want to be able to do this across several variables without having to double-check which values I'm actually replacing. I hope that makes sense. Just looking to save a little time instead of having to run a bunch of replace commands. Thank you!
-Marcos
It doesn't seem that recode would work because with recode I'd have to specify, Var1 (5=1), etc., while I want to be able to do this across several variables without having to double-check which values I'm actually replacing. I hope that makes sense. Just looking to save a little time instead of having to run a bunch of replace commands. Thank you!
-Marcos
Comment