Skip to content
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

173 model slicer stuck #174

Merged
merged 2 commits into from
Aug 6, 2024
Merged

173 model slicer stuck #174

merged 2 commits into from
Aug 6, 2024

Conversation

stephaniereinders
Copy link
Member

No description provided.

On the test data where `fit_model` keeps producing the error:
"Error in update.jags(object, n.iter, ...) : Error in node gamma[40]
Slicer stuck at value with infinite density"
I was able to get the model to run successfully if by truncating the gamma distribution with T(0.1, 1.9) and the beta distribution with T(0.001, 0.999). It turns out that the model runs successfully even if the beta distribution isn't truncated.

I tried gamma T(0.01, 1.9) but the slicer got stuck. I also tried gamma T(0.001, 1.9) and again the slicer got stuck.
https://people.stat.sc.edu/hansont/stat740/jags_user_manual.pdf Section 8.2.2 says that the slicer can get stuck at infinite density for the gamma distribution. The recommended solution is to bound the distribution away from zero with T(,).

## TO DO
Check with Alicia to make sure this is legitimate for our model.
@stephaniereinders stephaniereinders linked an issue Aug 6, 2024 that may be closed by this pull request
@stephaniereinders stephaniereinders merged commit 5c508e4 into master Aug 6, 2024
1 check passed
@stephaniereinders stephaniereinders deleted the 173-model-slicer-stuck branch August 6, 2024 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fit_model error: slicer stuck
1 participant