Statalist


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

Re: st: RE: question about -levelsof-


From   David Radwin <[email protected]>
To   <[email protected]>
Subject   Re: st: RE: question about -levelsof-
Date   Tue, 5 Aug 2008 09:38:40 -0700

Another way to get the number of levels is to use Gary Longton and Nick Cox's -distinct-, available from SSC.

It returns the number of unique values in `r(ndistinct)' .

David
--
David Radwin // [email protected]
Office of Student Research, University of California, Berkeley
*
* 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