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 |
Clinton Thompson <clintonjthompson@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: two-way frequency table using -tabout- |

Date |
Wed, 19 Dec 2012 13:24:56 +0100 |

Looks like I may have been a bit premature in sending this question to Statalist. The solution was buried in the documentation: "The underscores are used in clab to indicate blanks, and thereby remove redundant titles" (p.14). A simple change: tabout var1 var2 using foo.tex, replace cells(freq row) format(0 1) stats(chi2) layout(row) /// clab(_ _) style(tex) bt font(bold) topstr(14cm) topf(top.tex) botf(bot.tex) /// botstr(.) Thanks! Clint Thompson On Wed, Dec 19, 2012 at 11:52 AM, Clinton Thompson <clintonjthompson@gmail.com> wrote: > Hello All, > I'm using Ian Watson's -tabout- (ssc describe tabout) to create and > output two-way frequency tables to LaTeX. In the tables I'm trying to > create, I want the N to be placed above the row percent (which is > doable) but I don't want any text in the leftmost column indicating > that the values are the N and row percents. I want, essentially, the > table to be output as if it were created using -tab var1 var2, row > chi2-. The code I'm using follows: > >>>>>>>>>> BEGIN >>>>>>>>>> > > tabout var1 var2 using foo.tex, replace cells(freq row) format(0 1) > stats(chi2) layout(row) /// > clab(N Row_%) style(tex) bt font(bold) topstr(14cm) topf(top.tex) > botf(bot.tex) /// > botstr(.) > > <<<<<<<<<<< END <<<<<<<<<< > > Even if I change the -clab()- option to a null value or omit it > altogether, the (default) text remains. I've read the help > documentation and searched the Statalist archives with little success > so any suggestions or workarounds are much appreciated. > > I'm using Stata/SE 11.2 for Windows. > > Many thanks! > Clint Thompson > * > * 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: two-way frequency table using -tabout-***From:*Clinton Thompson <clintonjthompson@gmail.com>

- Prev by Date:
**Re: st: two-way frequency table using -tabout-** - Next by Date:
**st: Stata Journal Editors' Prize 2012: David Roodman** - Previous by thread:
**Re: st: two-way frequency table using -tabout-** - Next by thread:
**Re: st: two-way frequency table using -tabout-** - Index(es):