sel_qval: Compute q values with pre-filtering

sel_qvalR Documentation

Compute q values with pre-filtering

Description

Compute q values with pre-filtering

Usage

sel_qval(pvals, ind = NULL, method = "bootstrap", ...)

Arguments

pvals

vector of input p values

ind

logical vector corresponding to pre-filtering condition. NAs are allowed and reinterprated as FALSE. If NULL, all are interpreted as TRUE.

method

method selection for qvalue::pi0est

...

passed on to qvalue::qvalue (and then to pi0est)

Value

vector of q values with NAs for non-satisfied pre-filtering

Examples

pvals <- runif(10)
effectsize <- runif(10)
sel_qval(pvals, effectsize > 0.5)

powestermark/pwrutilities documentation built on Dec. 28, 2024, 4:44 a.m.