And a small answer:
. di r(r)
i.e. the same as the number of rows in the table.
Nick
[email protected]
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of Maoyong Fan
> Sent: 29 April 2004 23:23
> To: statalist
> Subject: st: A small question
>
>
> I use the following command to generate dummy variable.
>
> tabulate group, generate(dum)
>
> Now I want to know how many dummy variables have been
> created. How do I do that?
>
>
> Maoyong Fan
>
> *
> * 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/