pdcov: Partial distance covariance

Description Usage Arguments References Examples

View source: R/RcppExports.R View source: R/pdcov.R

Description

This method implements the method to compute the value of partial distance covariance proposed by Székely and Rizzo, 2014.

Usage

1
2
3
pdcov(x, y, z, type = c("U", "V"))

pdcor(x, y, z, type = c("U", "V"))

Arguments

x

the matrix of x

y

the matrix of y

z

the matrix of z. Given the value of z, pdcov or pdcor between x and y is calcuated.

type

"V" or "U", for V- or U-statistics of partial distance covariance or correlation. The default value is "U".

References

Székely, G. J., & Rizzo, M. L. (2014). Partial distance correlation with methods for dissimilarities. The Annals of Statistics, 42(6), 2382-2412.

Examples

1
2
3
4
5
z = matrix(rnorm(400),200,2)
x = matrix(rnorm(400),200,2)*z
y = matrix(rnorm(400),200,2)*z
pdcov(x,y,z)
pdcor(x,y,z)

dcov documentation built on July 1, 2020, 6:20 p.m.

Related to pdcov in dcov...