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 at the end of May, and its replacement, statalist.org is already up and running.


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

st: RE: RE: RE: Column widths in -tab- or including row percentages in -table-


From   Tim Evans <Tim.Evans@wmciu.nhs.uk>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: RE: Column widths in -tab- or including row percentages in -table-
Date   Wed, 13 Jun 2012 16:20:03 +0100

David,

Thank you for that - just what I needed!

Best wishes

Tim

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of David Radwin
Sent: 13 June 2012 16:03
To: statalist@hsphsun2.harvard.edu
Subject: st: RE: RE: Column widths in -tab- or including row percentages in -table-

Tim,

If you could live with column percentages instead of row percentages (and
rearrange your table accordingly), you could use -tablecol- by Nick
Winter, available from SSC. It gives you the flexibility of -table- plus
column percentages.

There are other user-written programs for creating tables in Excel, LaTeX,
HTML, etc., particularly Ian Watson's -tabout- (SSC), that might give you
row percentages and other features.

David	
--
David Radwin
Senior Research Associate
MPR Associates, Inc.
2150 Shattuck Ave., Suite 800
Berkeley, CA 94704
Phone: 510-849-4942
Fax: 510-849-0794

www.mprinc.com


> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-
> statalist@hsphsun2.harvard.edu] On Behalf Of Tim Evans
> Sent: Wednesday, June 13, 2012 4:09 AM
> To: 'statalist@hsphsun2.harvard.edu'
> Subject: st: RE: Column widths in -tab- or including row percentages in
-
> table-
> 
> I think -tab- isn't going to help me here
> 
> http://www.stata.com/statalist/archive/2012-06/msg00200.html
> 
> , so I guess getting percentages into -table- is going to be my best
> option.
> 
> Or re-define my variable labels.
> 
> Best wishes
> 
> Tim
> 
> 
> 
> 
> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-
> statalist@hsphsun2.harvard.edu] On Behalf Of Tim Evans
> Sent: 13 June 2012 11:41
> To: 'statalist@hsphsun2.harvard.edu'
> Subject: st: Column widths in -tab- or including row percentages in -
> table-
> 
> Hi all,
> 
> probably a really simple question to ask but having search around I cant
> seem to land on a solution..
> 
> I am creating a twoway table of year of diagnosis and counts of 30 day
> mortality, I get the row percentages at the same time using the
following
> code in Stata 11.2:
> 
> tab yydx Thirty if ID==5 & stflag=="Yes", row
> 
> However, the column width in the table truncates the display of my
values,
> I have two values
> column a) 'Died < 30 days'
> column b) 'Didnt die <30 days'
> 
> When I use the above code, column b is truncated to 'didn't die', now
this
> is misleading.
> 
> I therefore tried -table- using the following
> 
> table yydx Thirty if ID==5 & stflag=="Yes", col
> 
> and this works better and displays the full label, however, I'm not sure
> how to pull in the row percentages.
> 
> Any help appreciated.
> 
> Best wishes

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

_DISCLAIMER:
This email and any attachments hereto contains proprietary information, some or all of which may be confidential or legally privileged. It is for the exclusive use of the intended recipient(s) only. If an addressing or transmission error has misdirected this e-mail and you are not the intended recipient(s), please notify the author by replying to this e-mail. If you are not the intended recipient you must not use, disclose, distribute, copy, print, or rely on this e-mail or any attachments, as this may be unlawful.


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