Re: [R] qvalue

From: Peter Langfelder <peter.langfelder_at_gmail.com>
Date: Mon, 18 Apr 2011 09:28:56 -0700

On Mon, Apr 18, 2011 at 9:12 AM, Jim Silverton <jim.silverton_at_gmail.com> wrote:
> I am using storey's qvalue package but I keep on getting errors. Why is
> this?
>
>> qvalue(p, lambda=0.5)$pi0
> [1] "ERROR: p-values not in valid range."
> Error in qvalue(p, lambda = 0.5)$pi0 :
>  $ operator is invalid for atomic vectors

Some of your p-values are likely outside the range [0, 1]. In such cases the function prints out the error message and returns a single number 0. Trying to take a component of a single number produces the second error message you see.

Check your p-values - all need to be finite and within the range [0, 1].

HTH, Peter



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 18 Apr 2011 - 16:32:05 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 18 Apr 2011 - 16:40:31 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive