Re: [R] Kruskal.test

2013-07-19 Thread arun
Hi, You could try: Chisq1<-do.call(cbind,lapply(c(0.05,0.001),function(i) {x1<-sapply(seq_len(nrow(Specc)),function(i) chisq.test(as.table(unlist(Specc[i,-c(1:3)])))$p.value); sum(x1 To: arun Sent: Friday, July 19, 2013 1:25 PM Subject: Re: Kruskal.test Thank you. But I need to construct a

Re: [R] Kruskal.test

2013-07-10 Thread arun
Hi, Please dput() your example dataset. dat1<- read.table(text="a   a   a   a    a    b   b    b    c    c   c    c 2  4    5   2    7    2   2    6    3    7   9    3 3  3   4   1 6    8   1    3    5    2    6    3",sep="",header=FALSE,stringsAsFactors=FALSE) library(reshape)  dat2<-melt(as

Re: [R] Kruskal.test

2013-07-09 Thread Rui Barradas
Hello, Another possibility is to use the formula interface. x <- scan(what = "character", text = " a a a aab bbcc cc") y <- scan(text = " 2 45 272 2637 93") kruskal.test(y ~ factor(x)) dat <- structure(list(x = structure(c(1

Re: [R] Kruskal.test

2013-07-09 Thread arun
Hi, ?kruskal.test()  a<- c(2,4,5,2,7)  b<- c(2,2,6)  c<- c(3,7,9,3)  kruskal.test(list(a,b,c)) #  #  Kruskal-Wallis rank sum test # #data:  list(a, b, c) #Kruskal-Wallis chi-squared = 2.003, df = 2, p-value = 0.3673 A.K. Hi I need an expression in R to apply a kruskal.test to this data (for exa

Re: [R] kruskal.test followed by kruskalmc

2013-07-05 Thread peter dalgaard
On Jul 5, 2013, at 16:34 , Humber Andrade wrote: > Thank you Dr. Dalgaard. I understood. I know that this list is not to discuss > statistics but I would be very glad if you or someone else can give me some > opinion on how to proceed. The kruskal.test says there are differences but > the mult

Re: [R] kruskal.test followed by kruskalmc

2013-07-05 Thread Humber Andrade
Thank you Dr. Dalgaard. I understood. I know that this list is not to discuss statistics but I would be very glad if you or someone else can give me some opinion on how to proceed. The kruskal.test says there are differences but the multiple comparisons do not point out what are the differences. Ca

Re: [R] kruskal.test followed by kruskalmc

2013-07-05 Thread peter dalgaard
On Jul 5, 2013, at 15:00 , Humber Andrade wrote: > Thank you Prof. José Iparraguirre. Maybe I am wrong but I think the issues > are not the same. His data doesn't showed significant differences after > kruskal.test(), that was not my case. Anyway follow below my the results > I've got and the dat

Re: [R] kruskal.test followed by kruskalmc

2013-07-05 Thread Humber Andrade
Thank you Prof. José Iparraguirre. Maybe I am wrong but I think the issues are not the same. His data doesn't showed significant differences after kruskal.test(), that was not my case. Anyway follow below my the results I've got and the database. Thank you, # > kruskal.test(data$r

Re: [R] kruskal.test followed by kruskalmc

2013-07-05 Thread Jose Iparraguirre
Humber, Have a look at this: http://r.789695.n4.nabble.com/Multiple-Comparisons-Kruskal-Wallis-Test-kruskal-agricolae-and-kruskalmc-pgirmess-don-t-yield-the-sa-td4639004.html Hope it helps. Kind regards, José Prof. José Iparraguirre Chief Economist Age UK -Original Message- From: r-he

Re: [R] Kruskal.test() on lists

2008-08-21 Thread Peter Dalgaard
Altaweel, Mark R. wrote: Hi, I am trying to do a kruskal wallis test on two lists, fVisited and cSN: fVisited[[1]] [1] 0.17097623 0.30376141 0.17577266 0.14951855 0.03959753 0.08096217 0.05744888 0.02196257 cSN[[1]] [1] 0.08557303 0.36477791 0.19601252 0.12981040 0.05351320 0.1038554