This is very strange, but after running the
brm() function for the first time (which works perfectly fine), in the code below
dat3 <- data.frame(y = c(rvon_mises(n = 100, mu = -pi/2, kappa = 10), rvon_mises(n = 50, mu = pi/4, kappa = 5))) mix3 <- mixture(von_mises(), von_mises()) fit3 <- brm(bf(y ~ 1), dat3, family = mix3, chains = 2, inits = "random") summary(fit3)
everything seems to get “frozen” with that function, in that I still can run other commands, but if I try to rerun
brm() with different parameters, nothing happens:
R prints “Compiling Stan program…” and immediately (and apparently) finishes the computations without prompting any error message. But nothing has really happened, the variable
fit3 in my code remains unchanged no matter what I try. I need to restart R to be able to run
brm() again with different parameters, but that’s obviously a headache.
Any idea of what might be going wrong? I Maybe something related to the Stan compilation of the models?
Thanks in advance for any help
- Operating System: Windows 10
- brms Version: 2.13.5