rondolab / MR-PRESSO

Performs the Mendelian Randomization Pleiotropy RESidual Sum and Outlier (MR-PRESSO) method.
81 stars 30 forks source link

Distortion test #25

Open YUYU-TING opened 1 year ago

YUYU-TING commented 1 year ago

Dear authors,

Since the numerator of the empirical p-value of the article and the GitHub code is written differently, are the following H0 and Ha correct? Ho: causal effect estimates not distorted by horizontal pleiotropy Ha: causal effect estimates are distorted by horizontal pleiotropy

paper coding

In the distortion test, how to draw with replacement nE − 2no from the entire set of non-outlier variants?

In the empirical p-value, how to calculate the expected distortion?

Thank you.

Best, Tina

CypRiv commented 1 year ago

I noticed this thread while I was about to post similar questions regarding the Distortion test. Apart from the questions that have already been mentioned, I am adding another one related to the calculation of the expected bias.

In the paper, it is stated "The null distribution is generated by substituting nO variants detected as outliers by the MR-PRESSO outlier test with nE−2nO non-outliers, which are drawn with replacement from the entire set of non-outlier variants."

However, I believe that the behavior of the getRandomBias function is different:

Thanks a lot for providing clarification on this!

Best, Cyprien