cran / MendelianRandomization

:exclamation: This is a read-only mirror of the CRAN R package repository. MendelianRandomization — Mendelian Randomization Package
44 stars 28 forks source link

subscript out of bounds #4

Open elengss opened 2 years ago

elengss commented 2 years ago

Dear MendelianRandomization authors, I seem to be getting this error. Might you happen to know the cause? Thanks. Esther

head(tmp4) V1 V2 V3 V4 1 0.328634 0.0765984 0.101875 0.01552554 2 0.328634 0.0765984 0.105648 0.01552243 3 0.328634 0.0765984 0.101934 0.01551221 4 0.328634 0.0765984 0.101570 0.01551593 5 -0.328634 0.0765984 0.101904 0.01551076 6 -0.328634 0.0765984 -0.108804 0.01552269 dim(tmp4) [1] 7 4 x <- mr_egger(mr_input(bx = tmp4[,1], bxse = tmp4[,2], by = tmp4[,3], byse = tmp4[,4])) Error in summary$coef[2, 4] : subscript out of bounds

gaborcsardi commented 2 years ago

Hi, this is a read only mirror of CRAN, please see the package authors in the DESCRIPTION file. Look for Maintainer, BugReports and URL. Thanks!

sb452 commented 2 years ago

All your bx are all exactly the same! This is a little suspicious, and it stops the method from working. I highly suspect some (if not all) of your genetic variants are perfectly correlated, whereas the methods typically require variants to be uncorrelated.