sel_padj: Compute adjusted p values with pre-filtering

sel_padjR Documentation

Compute adjusted p values with pre-filtering

Description

Compute adjusted p values with pre-filtering

Usage

sel_padj(pvals, ind, method = "BH")

Arguments

pvals

vector of input p values

ind

logical vector corresponding to pre-filtering condition. NAs are allowed and reinterprated as FALSE.

method

method selection for p.adjust

Value

vector of adjusted p values with NAs for non-satisfied pre-filtering

Examples

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

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