Skip to content
Prev 381684 / 398503 Next

QQ plot

On 12/11/2019 2:56 p.m., Jim Lemon wrote:
I may be misunderstanding your last sentence, but if there is no 
association, the p-value would usually have a uniform distribution from 
0 to 1, it wouldn't be near 1.

I'd guess we're not seeing the p values from every test, only those that 
are less than 0.001.  If that's true, and there are no effects, it makes 
sense to multiply all of them by 1000 to get U(0,1) values.  On the 
plot, that would correspond to subtracting 3 from -log10(p), or adding 3 
to the reference line, as Ana requested.

Or just multiply them by 1000 and pass them to qq():

     qq(dd$P*1000, main = "Q-Q plot of small GWAS p-values")

As far as I can see, there's no way to tell qqman::qq to move the 
reference line.

Duncan Murdoch