Re: [R] median test

2010-05-28 Thread Stefan Grosse
> **Disclaimer: I have no idea what your data represents or how (in)appropriate any of these tests may be** R can do the tests you mentioned (and many more). Wilcoxon test: wilcox.test(x=group1, y=group2, paired=FALSE) see ?wilcox.test I am not sure whether it is still valid but in case o

Re: [R] median test

2010-05-28 Thread Frank E Harrell Jr
Linda, There are different views about whether someone doing statistical analysis should first take a certain number of statistics course. I think for your issue some background information would certainly help. You have not correctly interpreted the paper. The main point is that for most c

Re: [R] median test

2010-05-28 Thread linda Porz
Hello, I can't have different data these data came from mice that have lived under certain condition in the lab! I have just read the mentioned publication "Should the median test be retired from general use?" It says in the conclusion "If one felt that the data could not come from a Cauchy or sla

Re: [R] median test

2010-05-28 Thread Joshua Wiley
On Fri, May 28, 2010 at 6:58 AM, linda Porz wrote: > Hello, > > I can't have different data these data came from mice that have lived under > certain condition in the lab! I have just read the mentioned publication > "Should the median test be retired from general use?" It says in the > conclusion

Re: [R] median test

2010-05-27 Thread Frank E Harrell Jr
Please note that the median test is considered obsolete by many, because of its very low power. See the reference below. -Frank @Article{fri00sho, author = {Freidlin, Boris and Gastwirth, Joseph L.}, title ={Should the median test be retired from general use?}

Re: [R] median test

2010-05-27 Thread Joshua Wiley
Hello Linda, The "problem" is actually the median of your data. What the function median.test() does first is combine both groups. Look at this: median(c(group1, group2)) the median is 1, but the lowest value of the groups is also 1. So when the function does the logical check z < m where z =

[R] median test

2010-05-27 Thread linda Porz
Hi all, I have found the following function online median.test<-function(y1,y2){ z<-c(y1,y2) g <- rep(1:2, c(length(y1),length(y2))) m<-median(z) fisher.test(zhttp://www.mail-archive.com/r-help@r-project.org/msg95278.html I have the following data > group1 <- c(2, 2, 2, 1, 4, 3, 1, 1) >