Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: How do I put a value of a local macro into a variable label
From
Andreas Daniel <[email protected]>
To
[email protected]
Subject
st: How do I put a value of a local macro into a variable label
Date
Fri, 27 Jan 2012 13:36:31 +0100
Hi,
is there a way to put the values of a local macro into a variable label
using a foreach loop, like
local wave 1 2 3 4
foreach w in a b c d {
label var `w'var "Variable of wave `wave' "
}
Thank you very much for your help!!
best regards , Andy
*
* 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/