Hi Nikos,
The output below is from an ado command that I wrote to generate the
typical Table 1 in many publications. It displays column (default) or
row percentages in parentheses and also allows the addition of P values
from any significance test supported by Stata's Tabulate command. The
columns are separated by tabs, so you could just copy and paste as a
Word table. The command still needs some tidying and documentation is
skimpy, but if this could be of any help, please contact me privately.
Hopefully, one day will have the time to finish it and post it on SSC.
Regards,
Salah
**********************************************
. rtab nsex dep3 stage, by(dead) rw(20)
Dead No Yes Total
All 2129(47.7) 2338(52.3) 4467
Sex
Female 983(46.2) 951(40.7) 1934
Male 1146(53.8) 1387(59.3) 2533
Deprivation status
Affluent 498(23.4) 495(21.2) 993
Intermediate 1079(50.7) 1201(51.4) 2280
Deprived 526(24.7) 613(26.2) 1139
Unknown 26(1.2) 29(1.2) 55
Clinical stage
I 341(16.0) 144(6.2) 485
II 547(25.7) 350(15.0) 897
III 270(12.7) 411(17.6) 681
IV 76(3.6) 546(23.4) 622
Unstaged 895(42.0) 887(37.9) 1782
********************************************
Salaheddin Mahmud, MD, MSc
Division of Cancer Epidemiology
Department of Oncology, McGill University
Gerald Bronfman Centre
546 Pine Avenue West
Montreal, Quebec
Canada H2W 1S6
Ph: (514) 398-8191.
Fax: (514) 398-5002.
[email protected]
> -----Original Message-----
> From: [email protected] [mailto:owner-
> [email protected]] On Behalf Of n p
> Sent: Friday, January 23, 2004 11:59 AM
> To: [email protected]
> Subject: Re: st: RE: Frequencies and proportions side by side in
tables
>
> Thanks to both Nick Cox and Roger Newson for their
> useful sugestions regarding the use of Roger's
> xcontract and pcontract. These commands seem to be a
> great tool for what I was trying to do.
> Thanks again.
>
> Nikos Pantazis
> Biostatistician MSc.
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free web site building tool. Try it!
> http://webhosting.yahoo.com/ps/sb/
> *
> * For searches and help try:
> * http://www.stata.com/support/faqs/res/findit.html
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/