Question: Error with fdrtool in R

0

shawin_karim •

**0**wrote:Iam Using frdtool for estimating FDR for my pvalue but i have an error which is :

Error in if (max(x) > 1 | min(x) < 0) stop("input p-values must all be in the range 0 to 1!") :

missing value where TRUE/FALSE needed

the p value are not less that 0, and greater than 1 the range of p value are [1,0]

ADD COMMENT
• link
•
modified 6.5 years ago
by
Biostar ♦♦

**20**• written 6.6 years ago by shawin_karim •**0**
Do you happen to have at least one

`NA`

value in there (just run`table( is.na(foo))`

to see if`foo`

contains an`NA`

)? That'd cause this.97kNo I don't have NA value

31k• written 6.6 years ago by shawin_karim •0Then what's the output of

`table(max(x)>1)`

and`table(min(x)<1)`

?97kI have a vector

`pval1`

and its for the p values:31k• written 6.6 years ago by shawin_karim •0when I

`max(pval1)`

the result is NA also for min functionthe max min function does not work on pval1??

31k• written 6.6 years ago by shawin_karim •0the code is:

31k• written 6.6 years ago by shawin_karim •0It's unlikely that

`pval1`

is numeric.97k