Skip to content
Prev 366604 / 398502 Next

Qvalue package: I am getting back 1, 000 q values when I only want 1 q value.

Jim,

Thanks for the reply. Yes I'm just playing around with the data at the
minute, but regardless of where the p values actually come from, I can't
seem to get a Q value that makes sense.

For example, in one case, I have an actual P value of 0.05.  I have a list
of 1,000 randomised p values: range of these randomised p values is 0.002
to 0.795, average of the randomised p values is 0.399 and the median of the
randomised p values is 0.45.

So I thought it would be reasonable to expect the FDR Q Value (i.e the
number of expected false positives over the number of significant results) to
be at least over 0.05, given that 869 of the randomised p values are >
0.05?

When I run the code:

library(qvalue)
list1 <-scan("ListOfPValues")

qobj <-qvalue(p=list1)

qobj$pi0


The answer is 0.0062. That's why I thought qobj$pi0 isn't the right
variable to be looking at? So my problem (or my mis-understanding) is that
I have an actual P value of 0.05, but then a Q value that is lower, 0.006?


Thanks again for your help,

Tom
On Thu, Jan 12, 2017 at 9:27 PM, Jim Lemon <drjimlemon at gmail.com> wrote: