Statalist The Stata Listserver


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

Re: st: Multiple comparison: non-parametric test


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: Multiple comparison: non-parametric test
Date   Fri, 3 Feb 2006 06:47:42 +0000 (GMT)

Dear Siddharth:

If you can recover the p-value from the stored results of command than you can adjust the p-values
of that commands for multiple testing using the -_mtest- command. See the example below:

*---------begin example----------
set more off
sysuse auto, clear
mat result = J(9,1,1)
local i=1
foreach var of varlist price mpg headroom-gear_ratio {
	ranksum `var', by(foreign)
	matrix result[`i',1] = 2*(1-norm(abs(r(z))))
	local ++i
}
matrix list result
_mtest adjust result, replace mtest(sidak)
matrix list r(result)
*--------end example----------

HTH,
Maarten

--- Siddharth Kharkar <[email protected]> wrote:
> is there a way to calculate adjusted p-values for a non-parametric test
> (rank-sum) in stata? 


-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting adress:
Buitenveldertselaan 3 (Metropolitan), room Z214

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------


		
___________________________________________________________ 
NEW Yahoo! Cars - sell your car and browse thousands of new and used cars online! http://uk.cars.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/



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