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]

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


From   "David Radwin" <dradwin@mprinc.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: Column widths in -tab- or including row percentages in -table-
Date   Wed, 13 Jun 2012 08:02:52 -0700 (PDT)

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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index