There is probably something out there that'll do it, and/or you can
program it yourself pretty easily:
foreach v of varlist price mpg headroom {
quietly ttest `v' , by(foreign)
di "`v'" _col(18) %8.4g r(mu_1) " " %8.4g r(mu_2) %8.4f r(p)
}
Nick
-----------------------------------------------------------
Nicholas Winter, Ph.D. P 202.939.5343
Policy Studies Associates F 202.939.5732
1718 Connecticut Avenue, NW [email protected]
Washington, DC 20009-1148 www.policystudies.com
-----------------------------------------------------------
> -----Original Message-----
> From: jed [mailto:[email protected]]
> Sent: Thursday, April 24, 2003 11:06 AM
> To: [email protected]
> Subject: st: Multiple Mean tests
>
>
> Is there any ado program that would allow me to run a
> large number of mean tests (group mean comparison
> test) and display the mean values by group and the p
> value of such a test (Ha: diff != 0 )?
>
> something like:
>
> Variable Group1 Group2 p-value
> mean mean
> x1
> x2
> x3
> .
> .
> xn
>
> or I should run "ttest x1, by(group)" for all
> variables and then do hundreds of cut and paste
> operations?
>
> I appreciate any help in this matter.
>
> Julio
>
> __________________________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo
> http://search.yahoo.com
> *
> * 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/