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]

From |
William Buchanan <william@williambuchanan.net> |

To |
"statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |

Subject |
Re: st: Landscape tables with -estout/esttab- |

Date |
Mon, 4 Mar 2013 06:30:21 -0800 |

Hi Lukas, In the help file for -estout- and -esttab- there are optional arguments that allow you to add LaTeX code prior to the start of the table. Unless you explicitly tell LaTeX that you want that specific page landscape oriented it will have no way of knowing that. So, just add the appropriate commands in the header and footer options of the command. And -estout- is a user written command that can be found on SSC; I don't think Ben is still active on the Statalist though. HTH, Billy Sent from my iPhone On Mar 4, 2013, at 6:20, Lukas Borkowski <570722@soas.ac.uk> wrote: > Dear Clint, > > thanks for your help. It is not only a LaTex issue as STATA has to produce the correlation table in a matrix form first. However, the usual -eststo- -esttab- combination does not do it. I therefore just went the extra mile to get it down by using the -foreach- loop, > > eststo clear > foreach var in d_poor $controls { > eststo: estpost corr `var' $controls > } > esttab using correlation_matrix.tex, replace p lines not noobs nonum star(* 0.10 ** 0.05 *** 0.01) /// > title("Poverty Correlation Matrix") b(%9.3f) p(%9.3f) booktabs compress notes > eststo clear > > The orientation of the table can indeed be changed in Latex, thanks for the link. But is there no way to do it in STATA? > > Thanks again for your help, Clint! > > Regards, > Lukas > > # > Lukas Borkowski > University of London, School of Oriental and African Studies (SOAS) > > M: 570722@soas.ac.uk > > > > On 04.03.2013, at 11:36, Clinton Thompson <clintonjthompson@gmail.com> wrote: > >> I'm neither an expert on -estout- nor LaTex, but I think this is a >> LaTex issue. There are a number of resources for figuring this out, >> e.g.: http://en.wikibooks.org/wiki/LaTeX/Page_Layout#Page_orientation >> . >> HTH, >> Clint >> >> On Mon, Mar 4, 2013 at 12:12 PM, Lukas Borkowski <570722@soas.ac.uk> wrote: >>> Dear all, >>> >>> I am trying to generate a correlation matrix with quite a few variables and to produce it directly in latex-format. However, so far I can only generate a normal table that is not in landscape format and is too wide. So my question is how do I get -esttab- to produce a landscape table? My command line is >>> >>> eststo clear >>> estpost corr d_poor $controls, matrix listwise >>> esttab using correlation_matrix.tex, replace p lines not noobs nonum star(* 0.10 ** 0.05 *** 0.01) /// >>> title("Poverty Correlation Matrix") b(%9.3f) p(%9.3f) compress booktabs /// >>> notes width(1\textwidth) >>> eststo clear >>> >>> So what do I have to do to get it right? Thank you very much for your help! >>> >>> Kind regards, >>> >>> Lukas >>> >>> >>> # >>> Lukas Borkowski >>> University of London, School of Oriental and African Studies (SOAS) >>> >>> M: 570722@soas.ac.uk >>> >>> >>> >>> >>> * >>> * For searches and help try: >>> * http://www.stata.com/help.cgi?search >>> * http://www.stata.com/support/faqs/resources/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/faqs/resources/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/faqs/resources/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/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/

**References**:**st: Landscape tables with -estout/esttab-***From:*Lukas Borkowski <570722@soas.ac.uk>

**Re: st: Landscape tables with -estout/esttab-***From:*Clinton Thompson <clintonjthompson@gmail.com>

**Re: st: Landscape tables with -estout/esttab-***From:*Lukas Borkowski <570722@soas.ac.uk>

- Prev by Date:
**st: Midas** - Next by Date:
**st: RE: Midas** - Previous by thread:
**Re: st: Landscape tables with -estout/esttab-** - Next by thread:
**st: Adding character to numeric value** - Index(es):