Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: Using variable label


From   Partho Sarkar <partho.ss+lists@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Using variable label
Date   Tue, 20 Sep 2011 12:31:49 +0530

I am not sure exactly what you mean, but I think "extended macros"
would help.  If you have a variable X with a label "Junk":

         local Xlabel :variable label X
         di "`Xlabel'"

 would display

        Junk

See  [P] macro

P.S.

On Tue, Sep 20, 2011 at 6:51 AM, Ay <yuniphone@yahoo.co.id> wrote:
> Hi all,
> I want to use variable label in the output result rather than the variable name. I do not know how. I am using stata 11.0.
>
> I use varlabels but did not work.
>
> Looking it by findit but no search result.
>
> Thank you.
>
> Yun
>
>
>
> *
> *   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/
>

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