Nick Cox <[email protected]> suggested:
> In general, my advice is not to issue a program for
> a version you don't have yourself, as you then
> depend on others testing it.
>
> In this case, you might try something like this
>
> program myprog
> version 8.2
> local oktype = cond(`c(version)' < 9, "integer", "real")
> syntax ... , ... Level(`oktype' `c(level)')
You may also want to look at the new -cilevel- specifier for
-syntax- options. In Stata 9 type -help syntax- and then search
for "cilevel" (you can search by clicking on the binocular icon
near the upper right corner of the viewer.)
If you do not have Stata 9 (you are sitting by your mailbox
waiting for the delivery or have not yet ordered), you can go to
http://www.stata.com/help.cgi?syntax
and use your browsers search ability to find "cilevel" within the
document.
In Stata 9 you say
syntax ... , ... Level(cilevel) ...
This is better then saying
syntax ... , ... Level(real `c(level)') ...
because the -cilevel- option directive takes care of checking for
problems such as negative numbers, ...
Ken Higbee [email protected]
StataCorp 1-800-STATAPC
*
* 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/