powered by
Calculates distance correlation for two vectors or for every unique pair of matrix columns.
dCor(x, y = NULL, test = FALSE, adjust = "BH", alpha = NULL, parallel = FALSE, cores = 1L, R = 499L)
A coefficient or symmetric matrix when test = FALSE; otherwise a list with r and p.
test = FALSE
r
p
Numeric vector, matrix, or data frame.
Optional numeric vector paired with x.
x
Run permutation tests and return adjusted p-values.
Method passed to p.adjust.
p.adjust
Optional adjusted-p threshold used to zero nonsignificant coefficients.
Calculate unique matrix pairs in parallel on supported systems.
Requested core count.
Permutation count passed to energy::dcor.test.
energy::dcor.test
x <- matrix(rnorm(80), 20, 4) dCor(x) if (FALSE) dCor(x, test = TRUE, R = 999)
Run the code above in your browser using DataLab