getCutoffFDR: Get a meaningful cutoff based on the FDR values from...

View source: R/3-shared-getCutoff.R

getCutoffFDRR Documentation

Get a meaningful cutoff based on the FDR values from permutation tests.

Description

Get a meaningful cutoff based on the FDR values from permutation tests.

Usage

getCutoffFDR(object, fdr = 0.05, window_size = 1)

Arguments

object

A propd or propr object.

fdr

A float value for the false discovery rate. Default is 0.05.

window_size

An integer. Default is 1. When it is greater than 1, the function will return a meaningful cutoff based on the moving average of the FDR values. This is useful when the FDR values are noisy and the user wants to smooth them out.

Value

A cutoff value.


tpq/propr documentation built on Feb. 3, 2025, 4:23 a.m.