Statalist


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

st: Re: how to save output from TABLE or TABSTAT as a stata .dta data file


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Re: how to save output from TABLE or TABSTAT as a stata .dta data file
Date   Wed, 8 Apr 2009 20:57:24 +0200

<>

****
sysuse auto, clear
collapse (sum) price, by(rep78)
l
****

HTH
Martin
_______________________
----- Original Message ----- From: "Shuaizhang Feng" <fengsz@yahoo.com>
To: <statalist@hsphsun2.harvard.edu>
Sent: Wednesday, April 08, 2009 8:51 PM
Subject: st: how to save output from TABLE or TABSTAT as a stata .dta data file


Dear all:

I am wondering if anyone knows how to save table output from TABLE or TABSTAT to a stata data file.

For example, I have used

. table a, c(sum b)

to generate a list of summary statistics:


a       sum(b)

1 19372
2 102820
3 21403
4 19001
5 82549
6 15664
7 83616
8 50149


How do I save this and maybe change the name of the two variables for later use.

Thank you very much.

Shuaizhang



*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index