sweightedKendallStar: sweightedKendallStar

Description Usage Arguments Value Examples

View source: R/DCARS.R

Description

The sweightedKendallStar function is a convenience function to get swcor for weighted zero-inflated kendall's tau

Usage

1
sweightedKendallStar(x, y, w = 1)

Arguments

x

data vector

y

data vector

w

weights vector

Value

vector of stretched weighted correlations using zero-inflated kendall's tau association measure

Examples

1
2
3
4
5
6
7
8
x = pmax(0,rnorm(100))
y = pmax(0,rnorm(100))
w = runif(100)
wcor = weightedKendallStar(x,y,w)
bounds = boundsKendallStar(x,y,w)
stretch(wcor, upper = bounds[["upper"]], lower = bounds[["lower"]]

sweightedKendallStar(x,y,w)

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