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

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

From |
Bert Lloyd <[email protected]> |

To |
statalist <[email protected]> |

Subject |
st: Formatting .rtf tables produced by estout / esttab |

Date |
Sat, 11 Jan 2014 01:25:53 -0500 |

Dear Statlist, I am using esttab (part of the estout package from SSC) to produce tables of regression output in .rtf files. I would like to know how to center model group headers over the set of columns to which they correspond. When using esttab / estout to produce tables in .tex, the requisite code is mgroups("1" "2" "3" "4", pattern(1 0 1 0 1 0 1 0) prefix(\multicolumn{@span}{c}{) suffix(}) span) which would produce four groups over a total of 8 columns, with the label "1" centered over columns 1 and 2, the label "2" centered over columns 3 and 4, etc. I cannot figure out how to reproduce this in an .rtf table. Neither mgroups("1" "2" "3" "4", pattern(1 0 1 0 1 0 1 0) prefix(\multicolumn{@span}{c}{) suffix(}) span) nor mgroups("1" "2" "3" "4", pattern(1 0 1 0 1 0 1 0) span) produces the desired result: the group header appears over the first column to which it corresponds, i.e. "1" over column 1, the label "2" over column 3, etc. (That the first fails is not surprising, since it looks very latex-specific.) Many thanks in advance for any suggestions, BL PS: . which estout c:\ado\plus\e\estout.ado *! version 3.13 06aug2009 Ben Jann . which esttab c:\ado\plus\e\esttab.ado *! version 2.0.5 09mar2009 Ben Jann *! wrapper for estout . about Stata/SE 13.1 for Windows (64-bit x86-64) Revision 30 Oct 2013 * * 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/

- Prev by Date:
**RE: st: Pearson/Spearman Correlation Matrix** - Next by Date:
**Re: st: Panel Data 5 Year Average** - Previous by thread:
**st: Fwd: e(RMSPE) in synth command** - Next by thread:
**Re: st: Pearson/Spearman Correlation Matrix,** - Index(es):