Statalist The Stata Listserver


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

Re: st: Mean Test


From   Rijo John <[email protected]>
To   [email protected]
Subject   Re: st: Mean Test
Date   Mon, 23 Jan 2006 01:23:30 +0530

> *-----------begin example--------------
> set more off
> sysuse lifeexp, clear
>
> local i = 1
> tempname tests
> matrix `tests' =  J(4,1,0)
>
> foreach var of varlist popgrowth-safewater {
>         oneway `var' region
>         matrix `tests'[`i',1] = Ftail(r(df_m), r(df_r),r(F))
>         local ++i
> }
> matrix list `tests'
> _mtest adjust `tests', pindex(1) replace mtest(sidak)
> matrix list r(result)
-------------------------------------------------------------

Now cant the same be simply done by

foreach var of varlist popgrowth-safewater {
          oneway `var' region, t sid
         }


Thanks.

Rijo.

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