Statalist


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

st: RE: Suppress col total in tab2, tabout?


From   "Philip Ryan" <[email protected]>
To   <[email protected]>
Subject   st: RE: Suppress col total in tab2, tabout?
Date   Fri, 6 Nov 2009 01:49:24 +1030

Mark Kaulisch wrote:

<snip>

"With -tab2way- I can generate a table without the col total but the
frequency and percentage are not in different columns. Is there an option to
change this I do not see?"

No there is not.  -tab2way- uses the official Stata command -tabdisp-, the
cell(...) option of which stacks the values of its arguments vertically.
cell() has no options for changing its behaviour.  I suppose one could
pre-process the arguments of cell() into a single (concatenated) string to
give "n  x%" which would then display in a single line in a cell, but I have
no plans to do that.

Martin Weiss followed up:

"... I do not see the -nototal- thing in there....."

There is no -nototal- option for -tab2way-. You only gets totals if you
specify them.

Martin also suggested a look at -estpost tabulate- which will certainly
deliver much more flexibility than the rather primitive -tab2way- (which was
really an afterthought to -tab3way- a program that did, at least when it was
written, add some useful and simple-to-specify functionality to Stata's
table command.)

This thread is the latest in the long history of users expressing their
desire for more customised tabular output than is currently possible with
Stata. As I suppose would be the case at every Stata users group meeting,
the "wishes and grumbles" session at today's 3rd Australian and New Zealand
Stata Users' Group conference in Sydney raised the issue with Alan Riley and
Bobby Gutierrez. The gist of the response was "we are interested and we are
looking at it, but there are substantial challenges". 

Phil

Philip Ryan
University of Adelaide


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Kaulisch, Marc
Sent: Thursday, 5 November 2009 8:29 PM
To: [email protected]
Subject: st: Suppress col total in tab2, tabout?

I would like to know if there anre any opportunities to suppress the col
totals in a two-way tab?

I would like to have a table such as:

rowvar	colvar
		1	2	3
		n %	n %	n %
1
2
3
Total

If I do a tab rowvar colvar I do get the col total. At least with h tab2 I
do not see an option to suppress the col total. Is that correct?

With -tabout- I have the option to suppress the row total per panel
(ptotal(none)) but not the col total. Or am I misreading something?

With -tab2way- I can generate a table without the col total but the
frequency and percentage are not in different columns. Is there an option to
change this I do not see?

At best I would love to see the nototal-function of -tab2way- in -tabout- in
order to design a table as best as possible before exporting to a Word
processor.


Marc



iFQ
Institut für Forschungsinformation und Qualitätssicherung
Godesberger Allee 90
53175 Bonn, Germany
Tel.: *49 - 228 - 9 72 73 - 25
Fax: *49 - 228 - 9 72 73 - 49
E-mail: [email protected]
www.forschungsinfo.de 


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

No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 9.0.698 / Virus Database: 270.14.50/2481 - Release Date: 11/05/09
06:21:00


*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index