Bookmark and Share

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]

Re: st: Using variable label


From   Partho Sarkar <[email protected]>
To   [email protected]
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 <[email protected]> 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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index