pmdc: Partial Martingale Difference Correlation

Description Usage Arguments Value References Examples

Description

pmdc measures conditional mean dependence of Y given X conditioning on Z, where each contains one variable (univariate) or more variables (multivariate).

Usage

1
pmdc(X, Y, Z)

Arguments

X

A vector, matrix or data frame, where rows represent samples, and columns represent variables.

Y

A vector, matrix or data frame, where rows represent samples, and columns represent variables.

Z

A vector, matrix or data frame, where rows represent samples, and columns represent variables.

Value

pmdc returns the value of squared partial martingale difference correlation.

References

Park, T., Shao, X., and Yao, S. (2015). Partial martingale difference correlation. Electronic Journal of Statistics, 9(1), 1492-1517. http://dx.doi.org/10.1214/15-EJS1047.

Examples

1
2
3
4
5
6
# X, Y, Z are 10 x 2 matrices with 10 samples and 2 variables
X <- matrix(rnorm(10 * 2), 10, 2)
Y <- matrix(rnorm(10 * 2), 10, 2)
Z <- matrix(rnorm(10 * 2), 10, 2)

pmdc(X, Y, Z)

zejin/CMDMeasure documentation built on May 28, 2019, 4:42 p.m.