the weightedPearson function
weightedPearson(x, y, w = 1)
Arguments
| x |
x and y are data vectors |
| y |
x and y are data vectors |
| w |
weight vector, values should be between 0 and 1 |
Value
numeric weighted correlation value between x and y
Examples
#> [1] -0.07823659