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

Re: st: Tests on sums of coefficients?


From   "Michael S. Hanson" <[email protected]>
To   [email protected]
Subject   Re: st: Tests on sums of coefficients?
Date   Fri, 16 Jul 2004 10:10:41 -0400

On Jul 12, 2004, at 2:51 PM, Nick Cox wrote:

Be very careful here. As numerous threads bear
witness, looping around

local testsum = "`testsum'+`var'"

will truncate your macro at some limit. It
is much safer to copy, not evaluate:

local testsum "`testsum'+`var'"
Thanks for that suggestion -- it might help explain a problem I have seen cropping up with a similar construct.

I had searched the archive for similar questions before posting the original question, but found none like you refer to. I guess I had been looking the wrong way....

Thanks again for taking the time to respond to what must be a FAQ.

-- Mike

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