I would like to execute a line inside a loop only for one of the categories I loop through. I can easily do it using numeric values in the loop but it doesn't work if I have strings. Using the following code I get the error message hih not found:
Code:
foreach sam in hih low { use data_`sam', clear if `sam' = hih keep if type_group==1 }
Comment