Internal functions

Description

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.

Usage

1
2
3
.bit2boolean(x, N)

.p.adjust.closed(test, hypotheses, remove = FALSE, ...)

Arguments

test

function that performs the local test. The function should accept a subvector of the hypotheses argument as input, and return a p-value.

hypotheses

identifiers of the collection of elementary hypotheses.

remove

logical indicator of whether hypotheses of length N-1 should be removed

...

additional parameters to the 'test' function

Value

numeric vector of adjusted p-values for each hypothesis