Closed jflournoy closed 1 year ago
Thanks for opening this issue! Is this problem still present in the latest github version of brms?
Yep, same behavior after installing from github
> bayes_R2(b_fit)
Error in pnorm(.x1, mean = .x2, sd = .x3) :
Non-numeric argument to mathematical function
> packageVersion('brms')
[1] ‘2.18.8
Thanks. Will try to fix this in the next brms release.
I think this issue was the same as for the other one that shifted_lognormal is not compatible with missing values. I am sorry that I don't have a fix for this issue in the sense that these two features work well together.
I have a model with a predictor modeled shifted lognormal with measurement error that samples fine using
rstan
.When I ask for
pp_check
orbayes_R2
I get the following error that seems to come fromprepare_predictions
:Full traceback, below.
Reproducible example:
Traceback: