Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: finding number of unique values of a variable


From   "Salah Mahmud" <[email protected]>
To   [email protected]
Subject   Re: st: finding number of unique values of a variable
Date   Sun, 17 Aug 2008 12:58:08 -0500

try
findit levelsof
or
findit levels

On Sun, Aug 17, 2008 at 12:27 PM, Dick Campbell <[email protected]> wrote:
> I would like to loop over the list of variables in a data set and
> find the number of unique values for each variable, regardless
> of whether the variable is numeric or string. There are several
> ways to do this for a numeric variable, but I don't see a convenient
> way to do it for a mixture of string and numeric variables.
>
>
>
>
>
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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