ch.maxAveComb: This function combines a list into a single vector

View source: R/ch.maxAveComb.r

ch.maxAveCombR Documentation

This function combines a list into a single vector

Description

This function combines a list into a single vector controling the percent of observations devoted to the list element with the max median.

Usage

ch.maxAveComb(list.data, probMax = 0.5)

Arguments

list.data

A list with each element filled with numbers.

probMax

A probability that specifies the probability of samples that should be devoted to the column with the max(median()). When probMax = 0, the column with the max(median()) has no influence on either the average or above and beyond the average. When probMax = 0.5, the column with the max(median()) is 50 percent of the output vector. This is simply collapsing into a vector (as.vector) when there are only 2 vectors in the list. But it will have an outsized influence if there are more than two vector in the list. When probMax = 1, the column with the max(median()) is 100 percent of the output vector. DEFAULT = 0.5 (equal influence for two vectors)(probMax = .8 will produce a distribution in which .4 of the total are all the items (including the max) and .6 of the total are MAX items - when there are only two vectors in the list). Use ch.getProbMax() to calculate the appropriate probMax.

Value

a vector of values that combines all the columns in df.data with probMax samples devoted to the column with the max(median())

Examples

ch.maxAveComb (list.data, probMax = .8)

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