weightedSpearman: weightedSpearman

View source: R/higherOrderFunctions.R

weightedSpearmanR Documentation

weightedSpearman

Description

the weightedSpearman function

Usage

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


x = rnorm(100)
y = rnorm(100)
w = runif(100)
weightedSpearman(x,y,w)


shazanfar/scHOT documentation built on June 29, 2023, 5:29 p.m.