uniRIntSplit | R Documentation |
A function which splits a bin along x at a random integer conforming to limits on minimum bin size.
uniRIntSplit(bin, minExp = 5)
bin |
a bin to be split with elements 'x', 'y', 'depth', 'bnds' (list with elements 'x' and 'y'), 'expn', 'n' |
minExp |
numeric giving the minimum expected count allowed in a bin |
This function serves as a wrapper which manages the interaction of a score function, marginal splitting functions, tie breaking function, and a maximum selection function to split a bin along a single margin at the observation coordinate which maximizes the score function.
A list of two bins resulting from the split of 'bin' along the corresponding margin at the maximum location
Chris Salahub
bin <- makeBin(x = 1:10, y = sample(1:10))
rIntSplit(bin, minExp = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.