MRCIEU / TwoSampleMR

R package for performing 2-sample MR using MR-Base database
https://mrcieu.github.io/TwoSampleMR
Other
433 stars 176 forks source link

p-value format #42

Open sonia-shah opened 5 years ago

sonia-shah commented 5 years ago

Hi

For a number of my analyses I get p-values of zero. Is there a way to report the exact p-value?

Thanks

explodecomputer commented 5 years ago

The p-values are being calculated using standard R functions e.g. for IVW

pval <- 2 * pnorm(abs(b/se), low = FALSE)

It’s curious to find p-values of zero, are you able to email me an example dataset that gives this result so I can check what’s happening?

From: sonia-shah notifications@github.com Reply-To: MRCIEU/TwoSampleMR reply@reply.github.com Date: Wednesday, 21 November 2018 at 22:53 To: MRCIEU/TwoSampleMR TwoSampleMR@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [MRCIEU/TwoSampleMR] p-value format (#42)

Hi

For a number of my analyses I get p-values of zero. Is there a way to report the exact p-value?

Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

sonia-shah commented 5 years ago

Hi Gib

Thanks for the quick reply and sorry the delay in replying. It seems to be an issue with the mr_report function. If I use the mr() function it does give the exact p-value

Hope all’s good on your end.

Sonia

From: gibran hemani notifications@github.com Reply-To: MRCIEU/TwoSampleMR reply@reply.github.com Date: Thursday, 22 November 2018 at 10:24 am To: MRCIEU/TwoSampleMR TwoSampleMR@noreply.github.com Cc: "Shah, Sonia" sonia.shah@ucl.ac.uk, Author author@noreply.github.com Subject: Re: [MRCIEU/TwoSampleMR] p-value format (#42)

2 * pnorm(abs(b/se), low = FALSE)