Nothing
FDRThres <- function(x, q, sdev) {
M = length(x);
if (M < 2) {
T = 0;
} else {
m = (1:M) / M;
sortedX = sort(abs(x),decreasing = TRUE);
p = 2*(1 - pnorm(sortedX, sd = sdev));
k = which(p <= m*q);
k = k[length(k)];
if (length(k) == 0) {
T = sortedX[1] + 1e-16; #2^-52 is like MATLAB "eps"
} else {
T = sortedX[k];
}
}
}#FDRThres
##############################################################################
# HISTORY:
# 2007-12-17 [HB]
# o Created.
##############################################################################
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.