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

Re: st: Numerous t-tests


From   Fred Wolfe <[email protected]>
To   [email protected]
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)
  }

Fred

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?

Thanks.

Allan


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

Fred Wolfe
National Data Bank for Rheumatic Diseases
Wichita, Kansas
Tel (316) 263-2125     Fax (316) 263-0761
[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/



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