Statalist


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

st: adding a variable to a macro


From   "B. Timothy Walsh" <[email protected]>
To   [email protected]
Subject   st: adding a variable to a macro
Date   Fri, 18 Jul 2008 21:19:30 -0400

I am very new to Stata, but, having searched FAQ and Statalist, have not been able to find a solution...

I would like to add another variable to a local macro containing variables. So, if myvars contains varone vartwo varthree:
local myvars varone vartwo varthree

How do I add newvar?
I would have thought something like the following would work:
local myvars `myvars' newwar

But, it does not.
I'd appreciate any suggestions or guidance.
Thanks!
Tim Walsh



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