powered by
Calculates the False Discovery Rate (FDR) threshold for a given vector of statistic values.
Threshold.FDR(x, q, cV.type = 2, type = c("Normal", "t", "F"), df1 = NULL, df2 = NULL)
Returns the FDR threshold.
A vector of test statistic values.
The desired False Discovery Rate threshold.
A flag that specifies the assumptions about the joint distribution of p-values. Choose cV.type = 2 for fMRI data (see Genovese et al (2001)
The distribution of the statistic values. Either "Normal", "t" or "F".
The degrees of freedom of the t-distribution or the first degrees of freedom parameter for the F distribution.
The second degrees of freedom parameter for the F distribution.
J. L. Marchini
Note: This function is directly copied from "AnalyzeFMRI".
Genovese et al. (2001) Thresholding of Statistical Maps in Functional NeuroImaging Using the False Discovery Rate.
x <- c(rnorm(1000), rnorm(100, mean = 3)) Threshold.FDR(x = x, q = 0.20, cV.type = 2)
Run the code above in your browser using DataLab