Dear statalist users,
I need help with a data management problem. What is an efficient way of
creating a categorical variable which consists of all unique
combinations of a series of indicators variables?
For example, I have a data set with five binary variables: var1, var2,
var3, var4 and var5. A new variable is needed in which the categories
represent all possible unique combinations of var1-var5.
Please let me know if further clarification on the problem is needed.
Any help is much appreciated. Thanks!
Ritesh
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/