This function is used to benchmark test for independence on a new type of non-function dependence called patchwork copula

1 | ```
benchmark.patchwork.copula(fun, args, cvals, n = 320, nsim = 500, bins = 20)
``` |

`fun` |
function or character naming a function. A function should have two vectors of coordinates as first two arguments |

`args` |
list of additional arguments to the functions |

`cvals` |
target mutual information values
vector of concentration factors, these represent mutual information values (see |

`n` |
numeric, size of the data sets to generate (default 320 points) |

`nsim` |
numeric, how many replicate simulations to run under the null model and H1, default 500 |

`bins` |
decimal, number of bins of the bins*bins grid, (see |

This function returns a list data structure that can be further processed with the functions of this package, `calculate.power,generate.roc`

Sebastian Dümcke duemcke@mpipz.mpg.de

1 2 3 4 | ```
mycor = function(...) cor(...)^2
copula.vals = benchmark.patchwork.copula(mycor,list(),c(.3,1,10))
drop(calculate.power(copula.vals,.95))
roc.plot(generate.roc(copula.vals))
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.