Bookmark and Share

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]

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


From   Clinton Thompson <[email protected]>
To   [email protected]
Subject   Re: st: two-way frequency table using -tabout-
Date   Wed, 19 Dec 2012 13:07:38 +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
<[email protected]> 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/


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