novelTest.extreme: A novel test of independence

Description Usage Arguments Value Author(s) Examples

View source: R/novelTest.extreme.R

Description

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

Usage

1
novelTest.extreme(xdata, ydata, maxi = length(xdata) - 1)

Arguments

xdata

first dimension of data

ydata

second dimension of data

maxi

up to which ith nearest neighbour to consider

Value

This function returns the aggregated test statistic

Author(s)

Sebastian D<c3><bc>mcke duemcke@mpipz.mpg.de

Examples

1
2
3
4
5
set.seed(10)
xylist = generate.benchmark.data(7,.3,50)
x = runif(50)
novelTest.extreme(x,xylist$y,maxi=20)
novelTest.extreme(xylist$x,xylist$y,maxi=20)

knnIndep documentation built on May 29, 2017, 4:26 p.m.

Search within the knnIndep package
Search all R packages, documentation and source code