bayes_factor in brms
causes R
and Rstudio
session abort. I deleted and reinstalled both R
and Rstudio
. At first it wouldn’t fit brm()
models but after I tried
remove.packages(c("StanHeaders", "rstan"))
install.packages("StanHeaders", repos = c("https://mc-stan.org/r-packages/", getOption("repos")))
install.packages("rstan", repos = c("https://mc-stan.org/r-packages/", getOption("repos")))
that worked fine. Now I can set priors and fit models for brm
but when I get to the bayes_factor()
line both R
and Rstudio
crash.
I know this asked a similar question, but it was a bug from nearly a year ago and some of my brms
does work.
I load
library(rstanarm)
library(rstan)
library(brms)
library(BayesFactor)
library(bridgesampling)
Any idea what could help?
> sessionInfo()
R version 4.2.3 (2023-03-15 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)
Matrix products: default
locale:
[1] LC_COLLATE=English_United Kingdom.utf8 LC_CTYPE=English_United Kingdom.utf8
[3] LC_MONETARY=English_United Kingdom.utf8 LC_NUMERIC=C
[5] LC_TIME=English_United Kingdom.utf8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.2.3 tools_4.2.3 rstudioapi_0.14