Takes an ordered list of p-values and returns a set of selections controlling the false discovery rate. This is an implementation of the method of Li and Barber, JASA 2017.

accum_test(x, alpha = 0.2, c = 2, strict = FALSE)

Arguments

x

A vector of p-values to be tested IN ORDER.

alpha

The desired FDR threshold.

c

Parameter of the hinge-exponential function used in the test.

strict

If TRUE, the procedure is more conservative but controls the false discovery rate. If FALSE, the procedure is more liberal but controls a modified version of the false discovery rate.

Value

A vector of rejections, has the form 1:k for some value of k.