run_BHq: Run Benjamini-Hochberg procedure

Description Usage Arguments Value

View source: R/run_BHq.R

Description

Runs the either the original Benjamini-Hochberg procedure, the BH procedure with a log correction, or the BH procedure with whitened noise.

Usage

1
run_BHq(X, y, fdr, method = c("base", "log", "white_noise"))

Arguments

X

A nxp design matrix.

y

A vector of n responses.

fdr

The desired false discovery rate.

method

either "base", "log", or "white_noise" (default: "base").

Value

A list containing:

X

n-by-p design matrix.

y

vector of observed responses.

Z

vector of test statistics.

thres

data-dependent threshold.

selected

list of selected variables.


svteichman/prelim.knockoffs documentation built on May 28, 2020, 5:14 p.m.