calc_p: p-value for Pimentel's tau_b

Description Usage Arguments Value

Description

Computes an estimated p-value for Kendall's Tau_b for zero inflated continuous data as in Pimentel(2009).

Usage

1
calc_p(x, y, estimator = "values", p11 = 0, p01 = 0, p10 = 0)

Arguments

x, y

vectors to be correlated. Must be numeric.

estimator

string indicating how the parameters $p_11$, $p_01$, $p_10$, $p_00$ are to be estimated. The default is 'values', which indicates that they are estimated based on the entries of x and y. If estimates=='mean', each $p_ji$ is estimated as the mean of all pairs of column vectors in m1, and of m2 if needed. If estimates=='own', the $p_ji$'s must be given as arguments.

p11

probability that a bivariate observation is of the type (m,n), where m,n>0

p01

probability that a bivariate observation is of the type (0,n), where n>0

p10

probability that a bivariate observation is of the type (n,0), where n>0

Value

p-value of correlation.


mazeinda documentation built on May 2, 2019, 3:25 a.m.