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 |
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 |
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 |
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()