[R] median teat

2012-05-12 Thread Soheila Khodakarim
Dear All Is there any function for median test in R? Best Regards, Soheila [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] median teat

2012-05-12 Thread Tal Galili
Hi Soheila, There you go: median.test-function(y1,y2){ z-c(y1,y2) g - rep(1:2, c(length(y1),length(y2))) m-median(z) fisher.test(z=m,g)$p.value } group1 - c(2, 2, 5, 5, 4, 3, 1, 5,5,5,5,5) group2 - c(3, 1, 3, 1, 4, 1, 1, 1, 7, 1, 1, 1, 1, 1, 2) boxplot(group1, group2) median.test(group2

Re: [R] median teat

2012-05-12 Thread Sarah Goslee
Hi, On May 12, 2012, at 5:23 AM, Soheila Khodakarim lkhodaka...@gmail.com wrote: Dear All Is there any function for median test in R? Of course, and more than one. You might try going to rseek.org and searching for median test as a way to get started. Sarah Best Regards, Soheila

Re: [R] median teat

2012-05-12 Thread Soheila Khodakarim
Thank you so much. Best Regards, Soheila On Sat, May 12, 2012 at 2:45 PM, Tal Galili tal.gal...@gmail.com wrote: Hi Soheila, There you go: median.test-function(y1,y2){ z-c(y1,y2) g - rep(1:2, c(length(y1),length(y2))) m-median(z) fisher.test(z=m,g)$p.value } group1 - c(2, 2,

Re: [R] median teat

2012-05-12 Thread Soheila Khodakarim
Thank you so much. But I can not open this link, rseek.org:( Best Regards, Soheila On Sat, May 12, 2012 at 2:40 PM, Sarah Goslee sarah.gos...@gmail.comwrote: Hi, On May 12, 2012, at 5:23 AM, Soheila Khodakarim lkhodaka...@gmail.com wrote: Dear All Is there any function for median

Re: [R] median teat

2012-05-12 Thread Jeff Newmiller
I can. There are alternatives, though. RSiteSearch(keywords) at the R prompt. Google with the capital letter R in your search. --- Jeff NewmillerThe . . Go Live...