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

Re: st: need a quick count


From   [email protected]
To   [email protected]
Subject   Re: st: need a quick count
Date   Mon, 10 Oct 2005 16:47:20 -0700 (PDT)

are you simply seeking the number of unique values within said categorical
variable??  if so,
-codebook varname- may get you there...
hope this helps...
--clint


> Hi Statalisters:
>
> I have a categorical variable with an unknown number of categories
> because there are so many (hundreds) of categories. I can't figure out a
> way to get a quick count of the total number of categories for this
> variable- but there must be a way to obtain this information. Sum, list,
> tab, and prop don't work.
>
> Am I missing something??
>
> Thanks!
> *
> *   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/
>


*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index