Bookmark and Share

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]

Re: st: AW: TABOUT - Question / with exp.png


From   Eric Booth <ebooth@ppri.tamu.edu>
To   "<statalist@hsphsun2.harvard.edu>" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: AW: TABOUT - Question / with exp.png
Date   Fri, 24 Sep 2010 13:25:41 +0000

<>


 There's a range of similar examples fully explained here: 

http://www.ianwatson.com.au/stata/tabout_tutorial.pdf

- Eric

__
Eric A. Booth
Public Policy Research Institute
Texas A&M University
ebooth@ppri.tamu.edu
Office: +979.845.6754


On Sep 24, 2010, at 4:07 AM, Rilke Rainer Michael wrote:

> Sorry, for sending the attachment!
> 
> Basically I want Stata to export the following Latex-Code:
> 
> \begin{table}
> \begin{tabular}{ccccccc}
> & \multicolumn{3}{c}{Prop} & \multicolumn{3}{c}{Resp} \\
> &x&y &z &x&y &z\\
> \hline
> (1-5) &&&&&& \\
> 1&0.5&63.1&67.4 & 32.23 &0.5&63.1\\
> \end{tabular}
> \end{table}
> 
> For the proposed data.
> 
> Sorry, again.
> Rainer
> 
> -----Ursprüngliche Nachricht-----
> Von: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Rilke Rainer Michael
> Gesendet: Freitag, 24. September 2010 10:51
> An: statalist@hsphsun2.harvard.edu
> Betreff: st: TABOUT - Question / with exp.png
> 
> Hello,
> 
> I have a question concerning the tool: TABOUT.
> 
> Basically I want a table that looks like the example in the attachment.
> Whereas PROP and RESP AND (1-5) are variables defining two different categories.  X,Y and Z should be displayed in means and sd. 
> 
> Acutally I used tabout to solve this problem and typed in the following
> code:
> 
> tabout (1-5) (Prop/Resp) using blabla.tex, style(tex) replace c( mean x mean y mean z) sum
> 
> Tabout produces the following tables:
> 
> 
> & \multicolumn{3}{c}{Mean} \\
> &x&y &z \\
> \hline
> (1-5)&&& \\
> 1&0.5&63.1&67.4 & 32.23 \\
> 2&0.5&82.3&75.7 & 32.23\\
> 3&0.5&98.2&89.3 & 32.23\\
> 4&0.5&113.2&112.1 & 32.23\\
> 5&0.5&149.7&144.3 & 32.23\\
> Total&0.5&100.5&95.7 & 32.23\\
> \hline
> (PROP/RESP)&&& \\
> RESP&0.0&100.4&102.9 & 32.23\\
> PROP&1.0&100.6&88.5 & 32.23\\
> Total&0.5&100.5&95.7 & 32.23\\
> 
> If anyone has any suggestions I would be pleased to hear your comment.
> 
> Kind Regards,
> Rainer
> 
> 
> 
> 
> *
> *   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/




*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index