weightedcor.Rd
calculates weighted correlation between x and y
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
x = rnorm(100) y = rnorm(100) w = runif(100) weightedcor(x,y,w)#> [1] 0.3443893