Calculate False Discovery Rate (FDR) Using Permuted Values (Adjusted)
Source:R/calculateFalseDiscoveryRate.R
calculateFalseDiscoveryRate.Rd
This function calculates the false discovery rate (FDR) by comparing observed values to permuted values.The function sorts observed values, compares them against permuted data, and computes FDR using the median of permutation results.
Arguments
- observedValues
Numeric vector. The observed test statistics or values to be evaluated for significance.
- permutedValues
Numeric matrix. The permuted test statistics or values, with rows corresponding to the same values as in
observedValues
and columns representing different permutations.- showProgress
Logical. If
TRUE
, a progress bar will be shown during the computation.