-
-
Notifications
You must be signed in to change notification settings - Fork 182
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
Maintain chain information from prediction functions #1534
Comments
Agreed. However, I cannot just change the output format of such a frequently used function. This has to be part of brms 3.0. I am definitely planning on outputting posterior draws formats. Which of them it will become, I am not yet sure. |
That makes total sense. In the meantime, here is a workaround function that I've been using which might be useful for others. It should also work for multivariate responses:
|
Would it be possible to add an option to choose the output format, and keep the current format as the default? |
Currently
posterior_predict
and similar functions return an array of draws (not adraws_array
fromposterior
), which is S x N dimensions. I would like to combine this array of predictions with the posterior draws (indraws
format), but as this array does not have any record of the chains,posterior::bind_draws
does not work ("chain_ids do not match").Example
I'd like to avoid having to merge the chains of the posterior draws, so if it would be possible for the prediction functions from brms to return chain information (e.g. using the
draws_array
format), that would be very useful.The text was updated successfully, but these errors were encountered: