Statalist


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

Re: st: RE: question about -levelsof-


From   David Radwin <radwin@berkeley.edu>
To   <statalist@hsphsun2.harvard.edu>
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 // radwin@berkeley.edu
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index