Skip to content

Consider exposing get_dpar #1131

@martinmodrak

Description

@martinmodrak

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions