Learn R Programming

pvrank (version 1.0)

DealwT: Treatment of ties

Description

Calls a set of FORTRAN subroutines to deal with tied scores.

Usage

DealwT(n, x, y, indr="spearman", ties = "woodbury", sizer = 1000000,
	repl= 1000, print = TRUE)

Arguments

n
number of ranks.
x
a numeric vector.
y
a numeric vector with compatible dimensions to x.
indr
rank order association coefficient. Possible options are: 1="spearman", 2="kendall", 3="gini", 4="r4".
ties
method for breaking ties. Possible options are: 1="woodbury", 2="gh", 3="wgh", 4= "midrank", 5="dubois", 6="no ties".
sizer
number of replications for resolving ties by randomization. Default $10^6$.
repl
number of sampled pairs of permutations needed to apply the weighted max-min method. Default $10^3$.
print
FALSE suppresses some of the output.

Value

  • nnumber of ranks
  • xa numeric vector
  • ya numeric vector with the same dimension as x
  • indrrank correlation coefficient
  • tiesmethod for breaking ties
  • sizernumber of replications for resolving ties by randomization
  • replnumber of sampled pairs of permutations needed to apply the weighted max-min method
  • rthe observed value of the reuired coefficient
  • Hiloa numeric vector containing the bounds obtained with the Gideon-Hollister method, if demanded