Statalist


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

RE: st: Is there a similar output command as outreg for Summary?


From   Roy Wada <roywada@hotmail.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: Is there a similar output command as outreg for Summary?
Date   Tue, 17 Mar 2009 20:05:26 -0700

> Can I ask a question? Is there a similar output 
> command as outreg for Summary? I want to first 
> use command summary and then output selected items 
> (such as mean median p1 p99 STD) for many variables..
> Is there a such output command?

An alternative is to dump the contents into e(b) and e(V).
 
I happen to have a progrm that will do this. I have sent
it off to Kit Baum.  It should be available from SSC whenever
he can sit down with a cup of coffee and create a website for
it.
 
-sum2- will work like -mfx- or -margeff-, also available 
from SSC (and highly recommended) for placing marginal effects
into e(b) and e(V).
 
-sum2- does not discriminate. It will work with any table-
making programs that will accept ereturn results.
 
* for use with original outreg
sysuse auto, clear
reg mpg headroom length rep78
sum2, replace
outreg using myfile.txt, replace nonote noaster
type myfile.txt

* for use with outreg2
reg mpg headroom length rep78
sum2, replace
outreg2 using myfile, see replace nonote noaster
 
* alternatively
reg mpg headroom length rep78
outreg2 using myfile, see replace nonote noaster: sum2, replace

-sum2- will only report for variables and observations used in
the last regression.
 
The future version should allow a choice of detailed summaries and
[if] [in] [weights].  The codes are already in there; they only need
to be hooked up. May be sometime this year.
 
Roy
 
 
_________________________________________________________________
Windows Live™ Contacts: Organize your contact list. 
http://windowslive.com/connect/post/marcusatmicrosoft.spaces.live.com-Blog-cns!503D1D86EBB2B53C!2285.entry?ocid=TXT_TAGLM_WL_UGC_Contacts_032009
*
*   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