kernel {DiscreteFWER}R Documentation

Kernel Functions

Description

Kernel functions that transform observed p-values or their support according to a discrete FWER approach. The outputs are used by discrete_FWER(). kernel_DFWER_fast, computes the transformed p-values, while kernel_DFWER_crit additionally computes and returns the critical constants. The end user should not use these functions directly, as they are internal functions and parameters (including their names, order, etc.) may be changed without notice!

Usage

kernel_DFWER_singlestep_fast(
  pCDFlist,
  pvalues,
  independence = FALSE,
  pCDFcounts = NULL
)

kernel_DFWER_singlestep_crit(
  pCDFlist,
  support,
  sorted_pv,
  alpha = 0.05,
  independence = FALSE,
  pCDFcounts = NULL
)

kernel_DFWER_stepwise_fast(
  pCDFlist,
  sorted_pv,
  independence = FALSE,
  pCDFindices = NULL
)

kernel_DFWER_stepwise_crit(
  pCDFlist,
  support,
  sorted_pv,
  alpha = 0.05,
  independence = FALSE,
  pCDFindices = NULL
)

Arguments

pCDFlist

list of the supports of the CDFs of the p-values; each list item must be a numeric vector, which is sorted in increasing order and whose last element equals 1.

pvalues

numeric vector, sorted in increasing order, that either must contain the entirety of all observable values of the p-value supports (when computing critical constants) or only the sorted raw p-values.

independence

single boolean specifying whether the p-values are independent; if FALSE (the default), the discrete Bonferroni procedure [d-Bonf] is performed; otherwise, [d-Ind] is computed.

pCDFcounts

integer vector of counts that indicates to how many p-values each unique p-value distributions belongs.

support

numeric vector, sorted in increasing order, that contains the entirety of all observable values of the p-value supports.

sorted_pv

numeric vector, sorted in increasing order, containing the raw p-values.

alpha

single real number strictly between 0 and 1 indicating the target FWER level.

pCDFindices

list of integer vectors containing the indices that indicate to which raw p-value in sorted_pv each item in pCDFlist belongs, and must have the same length as pCDFlist; if NULL (the default), it is assumed that the first item of pCDFlist corresponds to the first p-value, the second item to the second p-value etc. in which case the lengths of pCDFlist and sorted_pv must be equal.

Value

For kernel_DFWER_singlestep_fast() and kernel_DFWER_stepwise_fast() a vector of transformed p-values is returned. kernel_DFWER_singlestep_crit and kernel_DFWER_stepwise_crit return a list with critical constants (⁠$crit_consts⁠) and adjusted p-values (⁠$pval_transf⁠).

See Also

discrete_FWER(), direct_discrete_FWER()


[Package DiscreteFWER version 1.0.0 Index]