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.
calculateFalseDiscoveryRate(observedValues, permutedValues)
A numeric vector of the same length as observedValues
, containing
the estimated FDR for each observed value.