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

st: Counting unique values across a set of variables: Re-sent


From   CM <cmhsieh54@yahoo.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Counting unique values across a set of variables: Re-sent
Date   Mon, 24 May 2004 08:52:38 -0700 (PDT)

Hi all,

I checked findit but don't believe I found what I
need.

Each row in my data represents a respondent.  Besides
the first column "A" representing ID, the other
columns (call them B thru Y) contain strings or "."  I
need to create a variable in column Z that counts the
number of unique strings found for any given
respondent in B thru Y.  Advice?

Thanks in advance,
CM
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index