Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Exporting summary tables


From   Michael McCulloch <mm@pinest.org>
To   Statalist <statalist@hsphsun2.harvard.edu>
Subject   st: Exporting summary tables
Date   Sat, 30 Aug 2008 08:38:54 -0700

I'm seeking guidance in creating summary tables which I can output to a text file. From my data set, I have used the -table- command to produce summary statistics, such as the following example where I report the number of subjects, median age, and proportion treated, stratified by cancer stage:

. table stage treatment, contents(n age median age mean treatment) col format(%9.2g) cen row

However, neither -table- nor the other related commands (tabulate or tabstat) are described in their help files as having the capability of exporting those summary statistics to a text file.

The context for my request is the following: from Michael Blasnik's lecture "Mass producing appendices using Stata and word processor mail merge" (http://ideas.repec.org/p/boc/asug05/14.html), I learned how to merge Stata output created using -outsheet- into a Microsoft Word template to create data tables (allowing me to reduce cut-and-paste errors).

What I am seeking in this posting is guidance on how to create an exported table of summary statistics, which I can then -outsheet- to a tab-limited text file.




--

Best wishes,
Michael McCulloch



Pine Street Foundation
124 Pine St., San Anselmo, CA 94960-2674
Tel: (415) 407-1357
Fax: (415) 485-1065
mcculloch@pinestreetfoundation.org
www.pinestreetfoundation.org
*
* 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   |   What's new   |   Site index