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

st: Parsing not-quite-standard syntax


From   "David Harrison" <David@icnarc.org>
To   "Statalist (E-mail)" <statalist@hsphsun2.harvard.edu>
Subject   st: Parsing not-quite-standard syntax
Date   Thu, 25 Nov 2004 09:21:57 -0000

I want to write a command with the syntax

command [name] [if exp] [in range] [, opt1 opt2 *]

BUT, the -if exp- and -in range- are to be applied in a -use- statement, so they may involve variables that are not in the dataset in memory. Any suggestions on how I can parse this to get the locals `namelist' `if' `in' `opt1' `opt2' and `options' that would be produced by -syntax-?

David
david@icnarc.org


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