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

st: options in stata


From   "NEYMOTIN, FLORENCE" <[email protected]>
To   [email protected]
Subject   st: options in stata
Date   Thu, 07 Jul 2005 16:02:51 -0700

Hi Everyone, I had a question: how do you refer to an option for a number list? for instance, suppose I write an .ado file where t(numlist) is an OPTIONAL element, so the user could input t(10 20 30 40 50) or no t at all. If I want to write a case-selection statement that looks like:

if t has been input by the user {
...
}
else {
...
}

then what is the REAL code for the if-statement here?
thanks,
Florence
*
* 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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index