FBartos / RoBMA

RoBMA R package for estimating robust Bayesian meta-analyses
https://fbartos.github.io/RoBMA/
8 stars 3 forks source link

prior_informed("van Erp") - help file example is producing an error #16

Closed shanelindsay closed 2 years ago

shanelindsay commented 2 years ago

RoBMA_2.1.1
https://rdrr.io/cran/RoBMA/man/prior_informed.html

Help file example is producing an error:

p1 <- prior_informed("van Erp") p1 Error in switch(family, norm = paste0("mean=", param[1], ", sd=", param[2]), : EXPR must be a length 1 vector

FBartos commented 2 years ago

Hi @shanelindsay ,

Thanks for reporting the issue! I installed the CRAN version of the package (2.1.1) but I couldn't reproduce the error. Could you please let me know what OS and R-version are you using?

Cheers, Frantisek

shanelindsay commented 2 years ago

Windows 10, R version 4.0.3 (2020-10-10) Seeing that date makes me feel like I might be due for an upgrade. I did manage to "Oosterwijk prior" from reading about the settings, i.e. prior("t", c(location = 0.35, scale = 0.102, nu = 3), lower = 0)

On Tue, 14 Dec 2021 at 11:43, FBartos @.***> wrote:

Hi @shanelindsay https://github.com/shanelindsay ,

Thanks for reporting the issue! I installed the CRAN version of the package (2.1.1) but I couldn't reproduce the error. Could you please let me know what OS and R-version are you using?

Cheers, Frantisek

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/FBartos/RoBMA/issues/16#issuecomment-993457965, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVKQFEVSP76HIHGZODTN7DUQ4UV3ANCNFSM5KARCSYA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

FBartos commented 2 years ago

This is very weird. I reinstalled the R 4.0.3 version and could not reproduce the error. Could you try reinstalling the BayesTools and RoBMA R packages to check whether it helps?

install.packages("BayesTools")
install.packages("RoBMA")

Cheers, Frantisek