I want to store the variables names in a single variable if its value is 1. For example, I would like to have a variable called sources which would have "source_home" if its value is 1 for the observation. It should only select the value with the first 1 and ignore if there are any others like in the last case here.
Thank you.
Code:
* Example generated by -dataex-. For more info, type help dataex clear input byte(source_home source_work source_food) 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 1 0 1 end

Comment