Description Usage Arguments Value Examples
View source: R/higherOrderFunctions.R
the weightedSpearman function
1 | weightedSpearman(x, y, w = 1)
|
x |
x and y are data vectors |
y |
x and y are data vectors |
w |
weight vector, values should be between 0 and 1 |
numeric
weighted correlation value between x and y
1 2 3 4 | x = rnorm(100)
y = rnorm(100)
w = runif(100)
weightedSpearman(x,y,w)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.