Description Usage Arguments Value Examples
Calculates weighted Pearson correlation between x and y. This function has been superceded by weightedPearson() and similar matrix function weightedPearson_matrix()
1 | weightedcor(x, y, w)
|
x |
x and y are data vectors |
y |
x and y are data vectors |
w |
weight vector |
weighted correlation value between x and y
1 2 3 4 | x = rnorm(100)
y = rnorm(100)
w = runif(100)
weightedcor(x,y,w)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.