Closed JohannesNE closed 2 years ago
Strange... it is working fine for me using both the CRAN and github versions of tidybayes, and you seem to be on the latest version of tidybayes. However, one thing I notice is that you are using brms 2.15 instead of the latest (2.16). If you update brms does it work?
Hmm. It did not help updating brms to 2.16.
It seems to be a problem with ndraws
in epred_draws
and nsamples
in rstantools::posterior_epred
.
If I run
mtcars |>
add_epred_draws(m_mpg_am, nsamples = 1)
I only get one draw (32 rows). I guess nsamples
is simply passed on through ...
.
Hmm that's bizarre, as the nsamples
argument was renamed to ndraws
in 2.16 so I don't think nsamples
should work on 2.16. Are you sure the update was successful? Did you restart your R session?
I did not restart the session :disappointed: It works! Thank you for the help, and I apologize for the inconvenience.
No problem! Glad to help.
When I set ndraws in
add_[epred|linpred|predicted]_draws()
I still get all draws.Created on 2022-04-07 by the reprex package (v2.0.0)