Learn R Programming

TMTI (version 1.0.1)

FWER_set_C: Leading NA

Description

Computes a the number of hypotheses that can be rejected with FWER control by using a binary search

Usage

FWER_set_C(LocalTest, pvals, alpha, low, high, verbose)

Value

The number of hypotheses that can be rejected with kFWER control at a user specific k.

Arguments

LocalTest

A function that returns a double in (0, 1).

pvals

A vector of p-values.

alpha

A double indicating the significance level

low

integer denoting the starting point for the search. Should start at zero.

high

integer denoting the end point of the search. Should end at pvals.size() - 1.

verbose

boolean, indicating whether to print progress.