Brms is not working, I dont get the exact solution for below code

I’m learning brms package to use for my project. But after the successful installation of the brms with all dependent packages. I’m not able to get the result even its compiling but not giving appropriate result.

> library(brms)
Loading 'brms' package (version 2.13.3). Useful instructions
can be found by typing help('brms'). A more detailed introduction
to the package is available through vignette('brms_overview').

Attaching package: ‘brms’

The following object is masked from ‘package:stats’:

    ar

> mod <- brms::brm(count ~ zAge + zBase + Trt,
+                data = epilepsy, family = 'binomial',
+                prior = set_prior('normal(0, 1)'),
+                save_all_pars = TRUE)
Using the maximum response value as the number of trials.
Compiling Stan program...
> summary(mod)
Error in summary(mod) : object 'mod' not found

I’m using datasets and codes, that is mentioned as examples in brms package

  • Operating System: Windows 10, 64 bit OS X64 based processor
  • brms Version: 2.13.3
1 Like

This is a current issue with rstan 2.21.1. You can find help in various threads about this issue, for example in https://mail.google.com/mail/u/0/?tab=cm#inbox/FMfcgxwJWrZSkGNXSZjqrdWvsrxtTTdJ

1 Like

I guess Paul sent a wrong link, Potential Problems with rstan and /or brms packages in R 4.0.2 seems to be one of the relevant threads, or https://discourse.mc-stan.org/search?q=brms%20object%20not%20found%20order%3Alatest more generally.

Thanks a lot, @paul.buerkner & @martinmodrak.

Glad to have helped. If you have trouble following any of the advice in the other threads or they don’t solve your issue, please let us know. Best of luck with your model!