powered by
Calculates distance covariance for two vectors or for every unique pair of matrix columns.
dCov(x, y = NULL, test = FALSE, adjust = "BH", alpha = NULL, parallel = FALSE, cores = 1L, R = 499L)
A covariance value 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 off-diagonal values.
Calculate unique matrix pairs in parallel on supported systems.
Requested core count.
Permutation count passed to energy::dcov.test.
energy::dcov.test
x <- matrix(rnorm(80), 20, 4); dCov(x)
Run the code above in your browser using DataLab