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