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

RE: st: RE: expanding a local that contains a list or wildcards


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: RE: expanding a local that contains a list or wildcards
Date   Wed, 6 Aug 2003 09:03:24 +0100

David Kantor replied very fully to Dimitriy Masterov. 

I just want to underscore his theme: if you are 
writing your own programs in Stata, getting to 
grips with -syntax- is a top priority. 

As a footnote, the number of variables can also 
be obtained by 
 
program myprog
	version 8 
	syntax varlist
	di "The number of variables is `: word count `varlist''"
end

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

*
*   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