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

RE: st: Keywords in programming

From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: Keywords in programming
Date   Fri, 12 Nov 2004 23:57:38 -0000

should, almost certainly, be understood
in context. It will be part of a preamble 
that parses what the user types, all 
preparatory to a -parse- which brought 
everything together. 

Here is an example of what we used to do 
("those were the days, my friend", etc.): 

    local varlist "req ex"
    local if "opt"
    local in "opt"
    parse "`*'"

In current Statas, this would be done 
this way: 

syntax varlist [if] [in] 

Thus, in short, 

local if "opt" 

is equivalent to part of a -syntax- command, 
but only as a part of a sequence of statements. 

[email protected] 

*   For searches and help try:

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