Description Usage Arguments Value Examples
The weightedSpearman_matrix function calculates a vector of weighted correlations for two given data vectors, for a matrix of given weights.
1 | weightedSpearman_matrix(x, y, W)
|
x |
x and y are data vectors |
y |
x and y are data vectors |
W |
weight matrix, values should be between 0 and 1, number of columns should be the same as length(x) and length(y) |
vector
weighted correlation values between x and y
1 2 3 4 | x = rnorm(100)
y = rnorm(100)
W = weightMatrix(100)
weightedSpearman_matrix(x,y,w)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.