Skip to content

Performing a non parametric Friedman Test

2 messages · JohnnyJames, Daniel Malter

#
My data looks like this:
                              (treatments)
                 T1             T2            T3
DK              8               5               3 

JP              5                4              1

AS             9                7             4

MK             8                4              4

DK, JP, AS, and MK are 4 different people (blocks) I am using.

This is my code so far:
I know that once I can get the ranks stored I can do a command like below.
Can someone help me store the data as ranks?
                       

--
View this message in context: http://r.789695.n4.nabble.com/Performing-a-non-parametric-Friedman-Test-tp3939045p3939045.html
Sent from the R help mailing list archive at Nabble.com.
#
There is a friedman.test() function. Any reason you want to do it by hand?

If so, you can do:

#Simulated data matrix
x<-matrix(rnorm(9),3,3,byrow=T)
x

#Rank matrix
r<-matrix(rank(x),dim(x))

HTH,
Daniel
JohnnyJames wrote:
--
View this message in context: http://r.789695.n4.nabble.com/Performing-a-non-parametric-Friedman-Test-tp3939045p3939430.html
Sent from the R help mailing list archive at Nabble.com.