# NOT RUN {
# X, Y, Z are vectors with 10 samples and 1 variable
X <- rnorm(10)
Y <- rnorm(10)
Z <- rnorm(10)
cmdm_test(X, Y, Z, type = "linmdd")
# 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)
cmdm_test(X, Y, Z, type = "pmdd")
# }
Run the code above in your browser using DataLab