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]

Re: st: Outputting results to a new dataset


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: Outputting results to a new dataset
Date   Mon, 2 May 2011 15:36:20 +0100 (BST)

 
--- brad.cannell wrote:
> Generally, I would like to learn the equivalent of SAS's "out=dataset"
> option. Specifically, I'm working on descriptive tables for a report
> right now. I'm running proportions on categorical variables, and I
> would like stata to save those proportion estimates as a new dataset
> that I can quickly and easily use to make graphs. 


A rather specific answer to that question would be to use -contract-

*------------ begin example -------------

sysuse auto, clear
contract rep78, percent(percent) nomiss
list
*-------------- end example -------------

(For more on examples I sent to the Statalist see: 

http://www.maartenbuis.nl/example_faq )

An answer that will work for wide variety of estimates (e.g. regression 

coefficients and the like) is Roger Newson's -parmest-, to find it type 

in Stata: -findit parmest-.

Hope this helps,
Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany


http://www.maartenbuis.nl
--------------------------


*
*   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