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.

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

 From "Martin Weiss" To Subject st: AW: TABOUT - Question / with exp.png Date Fri, 24 Sep 2010 10:59:49 +0200

<>

Your attachment cannot be represented in the archive
(http://www.hsph.harvard.edu/cgi-bin/lwgate/STATALIST/archives/statalist.100
9/date/article-1117.html), so the FAQ attached at the bottom of every
message kindly ask you to not send them... Also, state the origin of any
user-written material...

HTH
Martin

-----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

& \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/