Description Usage Arguments Value Author(s) Examples
This function implements a novel test of independence of bivariate data. It is based on the formula of the exact distribution of the ith
nearest neighbour given the previous nearest neighbour (see Pc_givena
).
1 | novelTest.chisq(xdata, ydata, maxi = length(xdata) - 1)
|
xdata |
first dimension of data |
ydata |
second dimension of data |
maxi |
up to which ith nearest neighbour to consider |
This function returns an object of class htest
with:
statistic |
The value of the statistic |
p.value |
p-value of the test |
Sebastian Dümcke duemcke@mpipz.mpg.de
1 2 3 4 5 | set.seed(10)
xylist = generate.benchmark.data(7,.3,100)
x = runif(100)
novelTest.chisq(x,xylist$y,maxi=20)
novelTest.chisq(xylist$x,xylist$y,maxi=20)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.