Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

Re: st: "Best" command to output regression results

From   "Weichle, Thomas" <>
To   <>
Subject   Re: st: "Best" command to output regression results
Date   Thu, 4 Nov 2010 10:28:22 -0500

Hi Eric, 
I'm using the code you provided and it seems to work fine.  However, do
you know how to create a 2007 Microsoft Word document (.docx)?  I simply
tried to replace the extension .doc with .docx and it doesn't work.
Also, is there a way to have the document created in landscape format
instead of portrait format?  This code puts the 2 model results right
next to each other.  Is there a way to put one after the other?  Do you
see anything else for improvement with this code?

foreach mod in colon_post lung_post {
estimates restore `mod'
estout * using "LOGISTIC_MODELS_test3.doc", cells("b(fmt(2)) ci(par((  -
)) fmt(2)) p(fmt(3))") stats(N) legend style(fixed) eform replace label
collabels("Odds Ratio" "95% C.I." "P>|z|") varwidth(25) modelwidth(10)
prefoot("") postfoot("")


* Open tables in Windows
if "`c(os)'" == "Windows" local i start !`i' "LOGISTIC_MODELS_test3.doc"

Tom Weichle
Math Statistician
Center for Management of Complex Chronic Care (CMC3)
Hines VA Hospital, Bldg 1, C202
708-202-8387 ext. 24261 

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index