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

st: RE: A small question


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: A small question
Date   Thu, 29 Apr 2004 23:30:19 +0100

And a small answer: 

. di r(r) 

i.e. the same as the number of rows in the table. 

Nick 
n.j.cox@durham.ac.uk 

> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu 
> [mailto:owner-statalist@hsphsun2.harvard.edu]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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index