Statalist


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

Re: st: making tables from test statistics


From   Partha Deb <partha.deb@hunter.cuny.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: making tables from test statistics
Date   Tue, 04 Sep 2007 13:09:27 -0400

Austin,

Thanks a lot.  This works perfectly.

Partha


Austin Nichols wrote:
Partha Deb <partha.deb@hunter.cuny.edu>:
I think you can trick -estout- into doing that, by generating
variables holding the values of your test statistics, and using its
summary stats capability.  But that would be horribly inefficient
compared to just writing a tab-delimited text file using the -file-
command:

webuse friedman2, clear
file close _all
file open t using /test.txt, write replace
file write t "Variable" _tab "dfuller"
qui dfuller m1
file write t _n "m1" _tab "`: di %6.4g r(Zt)'"
qui dfuller m2
file write t _n "m2" _tab "`: di %6.4g r(Zt)'"
qui dfuller consump
file write t _n "consump" _tab "`: di %6.4g r(Zt)'"
file close _all
type /test.txt

On 9/4/07, Partha Deb <partha.deb@hunter.cuny.edu> wrote:
Hi,

Is there a package akin to -estout- or -outreg- to make tables from test
statistics?  I'm conducting a series of tests on a number of variables and
would like to tabulate the statistics.  E.g., from

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/
--
Partha Deb
Department of Economics
Hunter College
ph:  (212) 772-5435
fax: (212) 772-5398
http://urban.hunter.cuny.edu/~deb/

Emancipate yourselves from mental slavery
None but ourselves can free our minds.
	- Bob Marley

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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