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

Re: st: Numerous t-tests

From   Fred Wolfe <>
Subject   Re: st: Numerous t-tests
Date   Wed, 26 Oct 2005 05:41:55 -0500

You can do it with the -foreach- command, as in ...

  foreach var of varlist age duration fatig mood {
  ttest `var',by(nodmardbio)


At 05:32 AM 10/26/2005, you wrote:
I have what should be a very simple question, but I haven't been able to figure out the answer. I want to do group mean comparison t-tests and rank sum tests on a number of different variables.. But, it appears that both -ttest- and -ranksum- will only do 1 variable at a time. So, is there a single command that will let me put in any number of variables (along with the 2-level grouping variable, of course) and will then do ALL the tests at once?



* For searches and help try:

Fred Wolfe
National Data Bank for Rheumatic Diseases
Wichita, Kansas
Tel (316) 263-2125     Fax (316) 263-0761

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index