Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

R�p. : st: how to format results of ttest?


From   "Herve STOLOWY" <[email protected]>
To   <[email protected]>
Subject   R�p. : st: how to format results of ttest?
Date   Tue, 05 Apr 2005 16:12:04 +0200

Dear Cher:

I faced the same problem. After several postings and exchanges of e-mails, namely with Nick Cox, I reached the following solution:

foreach var of varlist interne comite_audit independant president {

makematrix c1, from(r(t) r(p)) label: ttest form_gestion, by(`var')
matrix colnames c1 =  " T-Test " "(Prob)"
mat2txt, matrix(c1) saving(stat_formation_metier_`var') title(`var') replace
}


With -mat2txt- (downloadable from SSC), I get a tab-delimited file which can be easily opened with Excel.

Best regards

Herv� Stolowy


***********************************************************
Professeur/Professor
Coordinateur du D�partement/Head of Department
HEC Paris
D�partement Comptabilit� Contr�le de gestion / Dept of Accounting and Management Control
1, rue de la Liberation
78351 - Jouy-en-Josas
France
Tel: +33 1 39 67 94 42 - Fax: +33 1 39 67 70 86
[email protected]
http://campus.hec.fr/profs/stolowy/perso/home.htm

>>> [email protected] 04/04 3:19 pm >>>
Dear all,

I am conducting t-tests on dozens of variables (using 'ttest' command)
and would like to make a single table based on the output statistics
(mean, sd, se, obs, etc.).  I was trying to use 'estout' to format the
table; nevertheless, I could not 'estimates store', since there are
simply no estimates retuned after such a test (vis-�-vis those stored
post estimation).
Is there any other way to get around this problem?
Any suggestions will be greatly appreciated!

Many thanks

Cher 
 
 
Q. Cher Li
Department of Economics
Adam Smith Building
University of Glasgow
Glasgow G12 8RT, UK
Tel: 0141 330 2220
Fax: 0141 330 1880
Email: [email protected] 



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


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