View source: R/distance_cov_cor.R
Partial distance correlation | R Documentation |
Partial distance correlation.
pdcor(x, y, z)
x |
A numerical matrix. |
y |
A numerical matrix. |
z |
A numerical matrix. |
The partial distance correlation between x and y conditioning on z is computed.
The partial distance correlation
Michail Tsagris.
R implementation and documentation: Michail Tsagris <mtsagris@uoc.gr>.
Szekely G.J. and Rizzo M.L. (2014). Partial Distance Correlation with Methods for Dissimilarities. Annals of Statistics, 42(6): 2382–2412.
Szekely G. J. and Rizzo M. L. (2023). The Energy of Data and Distance Correlation. Chapman and Hall/CRC.
Tsagris M. and Papadakis M. (2025). Fast and light-weight energy statistics using the R package Rfast. https://arxiv.org/abs/2501.02849
dcov, dcor.ttest
x <- as.matrix(iris[1:50, 1:4])
y <- as.matrix(iris[51:100, 1:4])
z <- as.matrix(iris[101:150, 1:4])
#pdcor(x, y, z)
x <- y <- NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.