Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: list to word


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: list to word
Date   Sun, 6 Apr 2003 12:19:26 +0100

Boylan, Richard
> 
> I use outreg to make tables in word from regression output. 
>  I was wondering if someone had suggestions
> on how to make tables from the output of the stata command 
> 'list.'  (For instance, how to make sure that the value 
> labels for the columns show up, and how to copy the numbers 
> in a word table.) 

I believe that you are here referring to MS Word. 

I haven't tried this much, in fact much more than once, but 
this looked OK to me, assuming that now or previously 
you have installed -log2html-:  

. ssc inst log2html 

Create a .smcl log of your list, translate 
to HTML and read into Word. 

. sysuse auto 
. log using april6.smcl 
. list make foreign mpg 
. log close
. log2html april6.smcl 

Open MS Word; read in april6.html. 

Value labels are used in -list- by default. It 
takes the -nolabel- option to turn them off. 

Nick 
n.j.cox@durham.ac.uk 


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