Statalist


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

Re: st: controlling the table header with estout


From   Pierre Azoulay <[email protected]>
To   [email protected], [email protected]
Subject   Re: st: controlling the table header with estout
Date   Tue, 14 Apr 2009 13:36:35 -0400

the documentation indeed includes sometyhing very close to what I want
to achieve. But I am not conversant in teX --- I am exporting to rtf.
Would you know what   mgroups(A B, pattern(1 0 1 0)
prefix(\multicolumn{@span}{c}{) suffix(}) span
erepeat(\cmidrule(lr){@span})) alignment(D{.}{.}{-1}) page(dcolumn)
does?

regards,

Pierre

. sysuse auto
(1978 Automobile Data)

. eststo: quietly reg weight mpg
(est1 stored)

. eststo: quietly reg weight mpg foreign
(est2 stored)

. eststo: quietly reg price weight mpg
(est3 stored)

. eststo: quietly reg price weight mpg foreign
(est4 stored)

. esttab using example.tex, booktabs label            ///
>     mgroups(A B, pattern(1 0 1 0)                   ///
>         prefix(\multicolumn{@span}{c}{) suffix(})   ///
>         span erepeat(\cmidrule(lr){@span}))         ///
>     alignment(D{.}{.}{-1}) page(dcolumn) nonumber
(output written to example.tex)

. eststo clear


-- 
-------------------------------------------------------------------
Pierre Azoulay
Assistant Professor of Strategy
Massachusetts Institute of Technology
Sloan School of Management
50 Memorial Drive — E52-555
Cambridge, MA 02142-1947

Tel [Sloan]: (617) 258-9766
Tel [NBER]: (617) 588-1464
Fax: (617) 253-2660

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index