MRCIEU / TwoSampleMR

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

mr_raps function throws out error (dispersion, shrinkage) #393

Open msarguru opened 1 year ago

msarguru commented 1 year ago

Hi, running TwoSampleMR version TwoSampleMR_0.5.6 52 exposure SNPs testing with outcome (all snps available) and harmonization goes well and returns results with mr(dat) However, calling the methods_list (including mr_raps) throws the following error command: mr(dat,method_list=c("mr_ivw","mr_raps"))

Error in mr.raps::mr.raps(data, diagnostics = FALSE, over.dispersion = parameters$over.dispersion, : unused arguments (diagnostics = FALSE, shrinkage = parameters$shrinkage)

Running mr_raps separately also leads to the same issue command: mr_raps(dat$beta.exposure,dat$beta.outcome,dat$se.exposure,dat$se.outcome)

Any suggestions. Thanks M

lxfherofly commented 6 months ago

i found the same error, Error in mr.raps::mr.raps(data, diagnostics = FALSE, over.dispersion = parameters$over.dispersion, : unused arguments (diagnostics = FALSE, shrinkage = parameters$shrinkage). And my MR version is 0.5.9 i guess the mr_raps method need to update, and the old version raps function required some parameters however the new MR version has not supply.

LuoYu66 commented 3 weeks ago

I met the same error, and my TwoSampleMR version is 0.6.6. Any method of resoving this error?

sxy1313 commented 2 weeks ago

I met the same error, too. Could you please give me any suggestions?