pospos: pospos

Description Usage Arguments Value Examples

View source: R/DCARS.R

Description

The pospos function calculates the number of observations that are positive in both x and y. Used for calculating weighted Kendall tau measure of association

Usage

1
pospos(x, y, offset = TRUE)

Arguments

x

numeric vector of non-negative data x

y

numeric vector of non-negative data y

offset

should 1 be added when pospos is 0 or all

Value

numeric of weighted correlations for the sequence of weights given

Examples

1
2
3
x = pmax(0,rnorm(100))
y = pmax(0,rnorm(100))
pospos(x,y,offset = TRUE)

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