[R] Dunn's post hoc test

2005-10-17 Thread Iain Gallagher
Hi Everyone. I am rather new to R and I've been trying to implement a function to carry out the above test. For a couple of days now I've been stuck on how to generate average rank differences. Say I have a vector of average ranks: averank- c(2,5,9,12) I would like to subtract averank[1]

Re: [R] Dunn's post hoc test

2005-10-17 Thread Martin Henry H. Stevens
I don't know Dunn's rank test, but the following substracts each of the sums of averanks from the next rank. cumsum(averank)[-length(averank)] - averank[-1] Hank On Oct 17, 2005, at 4:30 AM, Iain Gallagher wrote: Hi Everyone. I am rather new to R and I've been trying to implement a

Re: [R] Dunn's post hoc test

2005-10-17 Thread IAIN GALLAGHER
Thanks for your reply Hank. It's not really what I'm after (though it's good to know). For the test ( as described in Statistics for the Biosciences by W. Gardiner. Prentice Hall, 1997) I have to rank my groups, calculate the average rank, then subtratc each average rank from every other. Any

Re: [R] Dunn's post hoc test

2005-10-17 Thread Robert Baer
89 90 92 92 - Original Message - From: IAIN GALLAGHER [EMAIL PROTECTED] To: Martin Henry H. Stevens [EMAIL PROTECTED] Cc: r-help@stat.math.ethz.ch Sent: Monday, October 17, 2005 2:29 PM Subject: Re: [R] Dunn's post hoc test Thanks for your reply Hank. It's not really what I'm after

Re: [R] Dunn's post hoc test

2005-10-17 Thread Robert Baer
averank [1] 15 29 30 31 31 38 52 66 82 94 - Original Message - From: IAIN GALLAGHER [EMAIL PROTECTED] To: Martin Henry H. Stevens [EMAIL PROTECTED] Cc: r-help@stat.math.ethz.ch Sent: Monday, October 17, 2005 2:29 PM Subject: Re: [R] Dunn's post hoc test Thanks for your reply Hank. It's