Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Data management problem: unique combinations


From   "riteshm" <[email protected]>
To   <[email protected]>
Subject   st: Data management problem: unique combinations
Date   Wed, 19 Jan 2005 14:55:01 -0800

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index