dcor.test {dcov}R Documentation

Permutation test of distance correlation and partial distance correlation

Description

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

Usage

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

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)


[Package dcov version 0.1.1 Index]