Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: String problem


From   "Dimitriy V. Masterov" <[email protected]>
To   [email protected]
Subject   Re: st: String problem
Date   Sun, 3 Sep 2006 16:43:46 -0400

On 9/3/06, Kelvin Foo <[email protected]> wrote:
Elegance aside, my variable list, if too long, would get truncated
because I assigned the macro revcovs with the "=" sign in the first
line of my above code. Is there anyway to avoid the "=' sign in that
line?
There is a way to get around the character limit for parsing:

local purge "var20"
local covars: list revcovs - purge

It's not very elegant. It seems like you should be able to do something like

local covars: list revcovs - "var20",

but I don't know how to get it to work.

HTH,
DVM
*
*   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