calculates weighted correlation between x and y

weightedcor(x, y, w)

Arguments

x

x and y are data vectors

y

x and y are data vectors

w

weight vector

Value

weighted correlation value between x and y

Examples

x = rnorm(100) y = rnorm(100) w = runif(100) weightedcor(x,y,w)
#> [1] 0.3443893