Statalist The Stata Listserver


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

Re: st: How to assign value labels to several variables at once?


From   Joseph Coveney <jcoveney@bigplanet.com>
To   Statalist <statalist@hsphsun2.harvard.edu>
Subject   Re: st: How to assign value labels to several variables at once?
Date   Mon, 12 Jun 2006 12:30:22 +0900

Buddy wrote (excerpted):

. local vars " q33cmplx q33time q33satis"

. foreach v of local var {

And I wrote:

It's difficult to tell from what you've shown why your variables are not
labeled in the second example.

--------------------------------------------------------------------------------

Thuy Le spotted it:  you named your macro vars, but mistyped it in
your -foreach- line as var.

Joseph Coveney

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index