Lines Matching refs:ties
15 ties.method = c("average", "first", "last", "random", "max", "min"))
23 \item{ties.method}{a character string specifying how ties are treated,
34 (called \sQuote{ties}), the argument \code{ties.method} determines the
36 in a permutation with increasing values at each index set of ties, and
58 vector or \code{ties.method = "average"} when it is of double type
59 (whether or not there are any ties).
69 (r2 <- rank(x2)) # ties are averaged
75 rank(x2, ties.method= "first") # first occurrence wins
76 rank(x2, ties.method= "last") # last occurrence wins
77 rank(x2, ties.method= "random") # ties broken at random
78 rank(x2, ties.method= "random") # and again
80 ## keep ties ties, no average
81 (rma <- rank(x2, ties.method= "max")) # as used classically
82 (rmi <- rank(x2, ties.method= "min")) # as in Sports
86 tMeth <- eval(formals(rank)$ties.method)
87 rx2 <- sapply(tMeth, function(M) rank(x2, ties.method=M))
89 ## ties.method's does not matter w/o ties:
91 rx <- sapply(tMeth, function(MM) rank(x, ties.method=MM))