weightedSpearman: weightedSpearman

Description Usage Arguments Value Examples

View source: R/higherOrderFunctions.R

Description

the weightedSpearman function

Usage

1
weightedSpearman(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
2
3
4
x = rnorm(100)
y = rnorm(100)
w = runif(100)
weightedSpearman(x,y,w)

scHOT documentation built on Nov. 8, 2020, 5:06 p.m.