perm_test: Permutation test of distance correlation and partial distance...

Description Usage Arguments Examples

Description

Simple independence test based on data permutation using distance correlation and partial distance correlation.

Usage

1
2
3
dcor.test(x, y, R = 500, type = c("V", "U"))

pdcor.test(x, y, z, R = 500, type = c("U", "V"))

Arguments

x

the data of x

y

the data of y

R

the number of replicates

type

"U" or "V"

z

the data of controlling variables. Given z, pdcor between x and y is calculated.

Examples

1
2
3
4
5
6
n = 200
z = rnorm(n)
x = rnorm(n)*z
y = rnorm(n)*z
res1 = dcor.test(x,y,R=500)
res2 = pdcor.test(x,y,z,R=500)

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

Related to perm_test in dcov...