Maybe I missed something obvious, but if I understand it correctly, when implementing a custom distribution, one has to suppose that dpars are not themselves predicted or manually write code to detect and handle both the "one global value" and "predicted" cases in their posterior_predict_xx, log_lik_xx implementations.
The built-in distributions use get_dpar that seems to handle this distinction automatically. Maybe it could be exposed to users?
If so, then the custom families vignette should be updated to reflect this.
As usual, if you like then I will (at some point :-) be happy to file a pull request implementing this.
Maybe I missed something obvious, but if I understand it correctly, when implementing a custom distribution, one has to suppose that
dparsare not themselves predicted or manually write code to detect and handle both the "one global value" and "predicted" cases in theirposterior_predict_xx,log_lik_xximplementations.The built-in distributions use
get_dparthat seems to handle this distinction automatically. Maybe it could be exposed to users?If so, then the custom families vignette should be updated to reflect this.
As usual, if you like then I will (at some point :-) be happy to file a pull request implementing this.