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/