These internal functions perform the closed set p-value adjustment calculation for the multivariate Cochran-Armitage trend test. The logical constraint on the possible number of true null hypotheses is incorporated.
.bit2boolean(x, N).p.adjust.closed(test, hypotheses, remove = FALSE, ...)
numeric vector of adjusted p-values for each hypothesis
function that performs the local test. The function should accept a subvector of the hypotheses argument as input, and return a p-value.
identifiers of the collection of elementary hypotheses.
logical indicator of whether hypotheses of length N-1 should be removed
additional parameters to the 'test' function