Create variable that uses value of another variable to determine which other variable from which to take value
Advertisements Say I have these data: clear all input id var1 var2 var3 key 1 23 45 8 2 2 11 7 99 3 3 29 22 1 1 4 5 61 5 2 end How can I create another variable called want that uses the key variable as a key to identify which variable… Read More Create variable that uses value of another variable to determine which other variable from which to take value