ch.distOverlapFlex: Bootstrap the overlap of two distributions Function with a...

View source: R/ch.distOverlapFlex.r

ch.distOverlapFlexR Documentation

Bootstrap the overlap of two distributions Function with a flexible function

Description

This function does a bootstrap to calculate the percentage of samples that Distribution X is greater than Distribution Y. When Distribution X (or Y) are the combination of multiple items, then it uses combFun (a function) to combine the values of those items into a single distribution.

Usage

ch.distOverlapFlex(xDist, yDist, numRuns, combFun = ch.maxAveComb, ...)

Arguments

xDist

a list containing the values for Distribution X.

yDist

a list containing the values for Distribution Y.

numRuns

the number of runs in the bootstrap. DEFAULT = 100.

combFun

If there are multiple items contributing to a single distribution, this function describes how the values will be combined across items in both the X and Y distributions. The function must combine elements of a list that might be of different different lengths. The default just flattens the list into one large vector. DEFAULT = ch.maxAveComb (with probMax = 0.5)

Value

the average percentage of samples that xDist was greater than yDist, the sd of the average percentage, Overlap = a transformation of average percentage so 1=complete overlap and 0 = no overlap, direction = 1 if xDist > yDist; else -1

Examples

ch.distOverlapFlex (xValue, yValue,100, combFun = ch.maxAveComb, probMax = 0.667)

ccpluncw/ccpl_R_chValues documentation built on Feb. 12, 2024, 4:21 a.m.