-
Notifications
You must be signed in to change notification settings - Fork 4
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
Setting distributional parameters to constant bug #227
Comments
what happens if you do this instead by setting the prior to be constant? I am not convinced this is the most important functionality to support so would push it unless you have a strong view that its functionality we need? |
Currently we do not support users passing in priors. Perhaps #71 (allowing users to pass in priors) is therefore more important to do. And then we wouldn't need to support this in the formula. |
I think #71 would support a broader range of use cases? Obviously it would be nice if this worked though |
I think this will be closed via #255 but I need to check, then I'll close this. Maybe add a test. |
Nope, get error: Error in `f()`:
ℹ No available prior to replace in old_prior found for:
<lower=0> sigma ~ lognormal(-0.7, 0.4)
Run `rlang::last_trace()` to see where the error occurred. To fix! |
We have two bugs I've seen when trying to set distirbutional parameters to be constant:
Bug 1
results in:
Reason: in
epidist_prior
we hard code that the model has to have certain priors.Bug 2
Even if we didn't have this prior problem, then we have the following bug:
Reason: our custom likelihood expects a vector for all distributional parameters. If instead its a real then it throws an error.
The text was updated successfully, but these errors were encountered: