Description Usage Arguments Value References Examples
View source: R/mdd_test_permutation.R
Conditional mean independence test using permutation
1 | mdd_test_perm(X, Y, R = 999)
|
X |
distances or data of first sample |
Y |
distances or data of second sample |
R |
number of replicates |
mdd_test_perm returns a list containing
test_statistic: observed value of the test statistic
MDD: sample martingale difference divergence
replicates: replicates of the test statistic
p_value: approximate p-value of the test
Shao, Xiaofeng, and Jingsi Zhang. "Martingale difference correlation and its use in high-dimensional variable screening." Journal of the American Statistical Association 109.507 (2014): 1302-1318.
Park, Trevor, Xiaofeng Shao, and Shun Yao. "Partial martingale difference correlation." Electronic Journal of Statistics 9.1 (2015): 1492-1517.
1 2 3 4 | A <- iris[1:50, 1:2]
B <- iris[1:50, 3:4]
set.seed(1)
mdd_test_perm(A, B)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.