lme_mass_FDR2: Perform two-stage FDR correction

View source: R/lme_mass_FDR2.R

lme_mass_FDR2R Documentation

Perform two-stage FDR correction

Description

Perform two-stage FDR correction

Usage

lme_mass_FDR2(pval, sgn, maskvtx = NA, rate = 0.05, tail = 0)

Arguments

pval

Vector of p-values from lme_mass_F

sgn

Vector of signs from lme_mass_F

maskvtx

Indices (one-based) for vertices to include in the analysis (default: all)

rate

Alpha level (default: 0.05)

tail

One of -1 for left-sided or 0 for two-sided or 1 for right-sided hypothesis testing (default: 0)

Value

The function returns a list with field detvtx, sided_pval, pth, and m0.

Examples

#'
## Not run: F <- lme_mass_F(...)
## Not run: F_FDR2 <- lme_mass_FDR2(F$pval, F$sgn)

Deep-MI/fslmer documentation built on Jan. 24, 2025, 11:24 p.m.