Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: Wilcoxon Matched-Pairs Signed-ranks Test also for groups?


From   jverkuilen <[email protected]>
To   <[email protected]>
Subject   RE: st: Wilcoxon Matched-Pairs Signed-ranks Test also for groups?
Date   Fri, 30 Jan 2009 01:57:29 -0500

See -reshape-.  

However, I am not entirely convinced you want to run a non-par test. What is the nature of the non-normality? Most non-par tests lose the original scale of the variable, which isn't nice. Also they are badly affected by ties. The paired t test might still be good, so long as you don't have marked skew. 

JV

-----Original Message-----
From: "Rico Baumann" <[email protected]>
To: [email protected]
Sent: 1/29/2009 8:41 PM
Subject: st: Wilcoxon Matched-Pairs Signed-ranks Test also for groups?

Hi,

I have data with a binary variable (0 and 1) that splits my data set into two matched groups (one group of original observations and one control group), therefore the samples are not independent. 

group1  0  varname1 ...
group2  1  varname1 ...

Since some of the contained variables are not normally distributed I´d like to use a non-parametric test in order to test for the median difference of some variables between the two dependent groups.

The above mentioned signrank -- Equality tests on matched data seems to be the correct test, but unfortunately the syntax doesn´t allow the option by(groupvar), like e.g. ttest or ranksum do.
  signrank varname = exp [if] [in]

Is there any (advanced) solution for that, or do I have to rearrange the data in a spreadsheet outside Stata?

Thanks for help and best, 
Rico
-- 
Beste Grüße
Rico Baumann

email:   [email protected]
cell:      +49 (0)172 532 25 58
phone:  +49 (0)211 239 40 500  
efax:     +49 (0)3212 - 1077734
address: Vinckestraße 5, 40470 Düsseldorf, 
             Deutschland / Germany

  
 
 
 







*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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