-
-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
moment_match argument in add_criterion ignored #1323
Comments
Can you try it with the brms dev version from github? I think I already fixed it there. |
Something weird is going on with loo. Using the dev version of brms
crashes R. On the other hand,
does not crash R and gives the reasonable warning
However, following that with
seems to do nothing (it completes instantaneously) and I am on macOS 12.2.1, in case relevant. |
Once added, remove.packages(c("StanHeaders", "rstan"))
install.packages("StanHeaders", repos = c("https://mc-stan.org/r-packages/", getOption("repos")),
type = "source")
install.packages("rstan", repos = c("https://mc-stan.org/r-packages/", getOption("repos")),
type = "source") |
I already have rstan 2.26.8 installed. Note that I did use |
Ok, let me check. |
Should now be fixed. There were two things going on.
Thank you for opening this issue! Closing it now. |
I think this is still not working. If I run
I get the warning
which suggests that |
It did work if you compare before and after moment matching (4 vs 1 problematic observation). Moment matching is not perfect so it may not always succeed in fixing problems with all observations. |
The number of problematic observations changes every time the model is run so is pretty random. Is there any way I can check the fitted model to get confirmation moment matching has been performed? I am a bit sceptical, so it would be good to get reassurance. |
Not sure if the error is due to brms or loo. I have brms 2.16.3 and loo 2.5.0.
If I run the following
I get
which suggests that the
moment_match = TRUE
argument inadd_criterion
has been ignored.The text was updated successfully, but these errors were encountered: