Statalist The Stata Listserver


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

Re: st: t test and name of variables involved in the test


From   jpw3@duke.edu
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: t test and name of variables involved in the test
Date   Sun, 02 Apr 2006 10:22:52 -0400

You can -display- the two variable names before the ttest.

Justin


--On Sunday, April 02, 2006 3:55 PM +0200 Herve STOLOWY <stolowy@hec.fr> wrote:


Dear Statalisters:

I use the following loop to perform 9 t tests:

foreach varname of varlist competence form_gest exp_fi {

foreach groupvar of varlist interne independant comite_audit {

ttest `varname', by(`groupvar'),  if directoire==0 & president_ca==0

}
}

I have no problem with the loop and I get the results I was looking for.

However, in the output, the variable names are not mentioned. Given that
I have 9 outputs, it's rather combersume to determine which test is based
on which variables.

When I do a single t test for one varname and one groupvar, the same
problem exists (no variable names in the ouput) but the command line
tells me which variables are involved.

Do you know if there is a way to solve my problem?

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
stolowy@hec.fr
http://studies.hec.fr/web/stolowy

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