Entering edit mode
11.6 years ago
shawin_karim
•
0
I am 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]
Do you happen to have at least one
NAvalue in there (just runtable( is.na(foo))to see iffoocontains anNA)? That'd cause this.No I don't have NA value
Then what's the output of
table(max(x)>1)andtable(min(x)<1)?I have a vector
pval1and its for the p values:when I
max(pval1)the result is NA also for min functionthe max min function does not work on pval1??
the code is:
It's unlikely that
pval1is numeric.