Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: Outputting results to a new dataset


From   Maarten buis <[email protected]>
To   "[email protected]" <[email protected]>
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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index