weightedSpearman.Rd
the weightedSpearman function
weightedSpearman(x, y, w = 1)
x and y are data vectors
weight vector, values should be between 0 and 1
numeric weighted correlation value between x and y
numeric
x = rnorm(100) y = rnorm(100) w = runif(100) weightedSpearman(x,y,w) #> [1] 0.0673492