Description Usage Arguments Examples

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

1 2 3 |

`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. |

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)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.