weightedKendallStar: weightedKendallStar

Description Usage Arguments Value Examples

View source: R/DCARS.R

Description

the weightedKendallStar function calculates weighted Tau*, where Tau* is described in Pimentel et al (2015) doi:10.1016/j.spl.2014.09.002. This association measure is defined for zero-inflated, non-negative random variables.

Usage

1
weightedKendallStar(x, y, w = 1)

Arguments

x

x and y are non-negative data vectors

y

x and y are non-negative data vectors

w

weight vector, values should be between 0 and 1

Value

numeric weighted Tau* association value between x and y

Examples

1
2
3
4
x = pmin(0,rnorm(100))
y = pmin(0,rnorm(100))
w = runif(100)
weightedKendallStar(x,y,w)

shazanfar/DCARS documentation built on Oct. 14, 2020, 11:11 a.m.