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

st: Re: syntax of local macros


From   Christopher F Baum <baum@bc.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: Re: syntax of local macros
Date   Tue, 24 Jun 2003 06:16:34 -0400

On Tuesday, June 24, 2003, at 02:33 AM, Danielle wrote:

local rhs "`rhs' (xret`i' xmkt`i')"
}
di "`rhs'"
sureg `rhs',corr

Note well the lack of an equal sign in the definition of local rhs.

Kit
Is this so that the local variable <rhs> exists outside of the -forvalue-
loop?
No, it is to ensure that a local macro longer than 80 bytes can be formed. An equals sign will prevent that.

Kit

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