accum_test: Accumulation test with the hinge-exponential function

Description Usage Arguments Value

View source: R/accum_test.r

Description

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.

Usage

1
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.


stephenbates19/digitaltwins documentation built on Feb. 25, 2020, 12:41 a.m.