Can anybody give a formula for the "FDR values"? (I write "FDR values" because strictly speaking, you don't have an FDR value for each test, but an FDR value for the whole study, but nevertheles, you calculate these Q values for each test.) What I am looking is a rigorous formula, not a verbal procedure.
I have the following:
pval=c(0.07,0.08,0.09,0.10)
p.adjust(pval,method="fdr")
0.1 0.1 0.1 0.1
What formulae produce these values?
I thought that the "FDR value" is calculated as \begin{equation} Q=\frac{P_in_{tests}}{i} \end{equation} where $i$ ranks $P_i$ from smallest to largest, but this can't clearly be the case.