Dear Stata-listers,
I have six binary variables (m1,..,m6) coded 0/1
I wish to see the frequency of the pattern of occurring 1s, but preserving
the variable sequence. I am not sure whether any of "egen" functions can
perform the task (and I prefer not to use egen..=group(..)).
I started off with the following:
for X in num 2/6: recode mX 1=X
then if there is one of egen functions it would be
egen new=fun(m1 m2 m3 m4 m5 m6)
then tabulate new would yield
new freq
------ ------
1,2,3 63
1,3,4,5 23
1,4,5 30
2,5,6 20
.....etc
It is if I am "xtdes" but with variables rather than panel time-entries.
Many thanks for your help in advance.
Amani
*
* 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/