Closed andremrsantos closed 5 years ago
Oh yeah, that makes sense. Looks like it's an issue with the heuristic I used to identify when categorical models are being used. I should be able to fix this so that the correct output is given without needing you to set a flag manually. Thanks for the legwork tracking down the source of the issue and for the clear report.
It might be a few days until I put a fix out for this as my primary laptop died last night :/
This should be fixed on the dev
branch now. If you want to test it you can install it using this command:
devtools::install_github("mjskay/tidybayes", ref = "dev")
Let me know if you run into any issues.
It worked like a charm, thank you for your quick response
Hi staff,
I am performing some analysis with a Dirichlet regression with the
brms
package. Unfortunately, when I useadd_predicted_draws
orpredicted_draws
the resulting prediction returns NA.Checking the function in the source, I have found the following step in the
fitted_predicted_draws_brmsfit_
function that forces the predicted value into factor.Maybe you could consider add an flag variable to check if we wish to convert it into factors.
Here is a code snippet to replicate the error.
Thanks for everything