Description Usage Arguments Details Value Author(s) See Also Examples

This function gives the probability of observing the ith nearest neighbour at distance c given the (i-1)th nearest neighbour at distance a, $P(d_i >= x | d_(i-1) = a)$

1 |

`i` |
numeric, which nearest neighbour to consider |

`c` |
vector, the distance at which the ith NN was observed |

`a` |
vector, the distance at which the (i-1)th NN was observed, a <= c |

`N` |
numeric, size of the dataset |

The probability is calculated by ranking the data and assuming that the data lie on a torus. For details see D<c3><bc>mcke et al. "A novel test for independence derived from an exact distribution of ith nearest neighbours" (manuscript in preparation)

Probability vector

Sebastian D<c3><bc>mcke [email protected]

1 | ```
Pc_givena(10,2:7,1:6,20)
``` |

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

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.