Statalist


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

Re: st: adding variable labels using outreg2


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: adding variable labels using outreg2
Date   Mon, 18 Feb 2008 20:41:18 +0000 (GMT)

--- Lili Yan <lyan16@gmail.com> wrote:
> I want to add variable labels in outreg2 so that the output table
> lists variable labels instead of their names. This is my code:
> 
> outreg2 using  age.doc, bdec(4) label rdec(4) title("...")
> ctitle(...) replace
> 
> However, the output table contains only variable names. Could anyone
> please tell me how I should write the code? Thanks!

This works for me:

*--------------- begin example ----------------
sysuse auto, clear
reg mpg wei length
outreg2 using temp.doc, word seeout label
*--------------- end example ------------------

If you type -which outreg2- you get the version number. I got version
1.4 of outreg2. Maybe you got an old version.

Hope this helps,
Maarten

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------


      __________________________________________________________
Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com

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