Statalist


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

Re: st: Exporting summary tables


From   Michael McCulloch <[email protected]>
To   [email protected]
Subject   Re: st: Exporting summary tables
Date   Sat, 30 Aug 2008 12:23:32 -0700

Thanks to Caleb Southworth for suggesting using the -replace- option on -table-.
Thanks to Kit Baum for suggesting using the -tabout-.



On Sat, 30 Aug 2008, Michael McCulloch wrote:

: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

If I understand the question, you could use the -replace- option with
-table-. This would give you a dataset of your statistics. You could
then export the dataset as a tab-delimited file or covert it to
whatever format using StaTransfer, etc.

HTH,

Caleb Southworth
Associate Professor
University of Oregon Sociology
*
*   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/
*
*   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