ordervec2supp3(c("a","a","b","c","a","b","c"))
ordervec2supp3(rrace3())
(o <- args2ordervec(a=c(1,6,9), b=c(2,3,4), c=c(1.1,11.1)))
H <- ordervec2supp3(o)
H
# equalp.test(H) # takes too long for here
## Race: six competitors a-f finishing in alphabetical order. Mutually
## supporting groups: (acd), (bf), (e). Competitor "e" is not
## suppported by anyone else (he is a singleton) so does not need to be
## mentioned in argument 'e' and there are only two helpfulnesses to be
## considered: that of (acd) and that of (bf), which we will take to be
## 1.88 and 1.1111 respectively:
cheering3(v=letters[1:6],e=c(a=1,c=1,b=2,d=1,e=2),help=c(1.88,1.1111))
## Another race: four competitors, including two clones of "a", and two
## singletons "b" and "c". Here "a" helps his clone at 1.88; and "b"
## and "c" help one another at 1.111:
cheering3(v=c("a","b","a","c"),e=c(a=1,b=2,c=2),help=c(1.8,1.111))
## Same race as above but this time there are two clones of "b", one of
## whom did not finish:
cheering3(v=c("a","b","a","c"),e=c(a=1,b=2,c=2),help=c(1.8,1.111),"b")
## Most common case would be that the clones help each other but noone
## else:
cheering3(v=c("a","b","a","c"),e=c(a=1,b=2,c=3),help=c(1.8,1.111,1),"b")
Run the code above in your browser using DataLab