Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: change local macro


From   raoul reulen <[email protected]>
To   [email protected]
Subject   st: change local macro
Date   Sun, 31 Jan 2010 23:06:47 +0000

Hello all

Suppose I define the content of a local macro named "alpha" as :

.local alpha 1 2 3 4 5

Can I adjust the content of the local macro without having to redefine
the local macro?
Can I remove, for example, the first number such that the content is
now 2 3 4 5 rather than 1 2 3 4 5?

Thus, if I type:

.di "`alpha'"

I (obviously) get:

1 2 3 4 5

but I want:

2 3 4 5

Obviously,

.di "`alpha'-1" or something wouldnt work....

Thanks

Raoul
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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