weightedZIKendall: weightedZIKendall

Description Usage Arguments Value Examples

View source: R/higherOrderFunctions.R

Description

the weightedZIKendall 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
weightedZIKendall(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 = pmax(0,rnorm(100))
y = pmax(0,rnorm(100))
w = runif(100)
weightedZIKendall(x,y,w)

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