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

Help with InvertY.cpp message? #9

Open
jacobenglert opened this issue Dec 5, 2023 · 1 comment
Open

Help with InvertY.cpp message? #9

jacobenglert opened this issue Dec 5, 2023 · 1 comment

Comments

@jacobenglert
Copy link

Hi there,

I am using the hybrid sampler from this package for a negative binomial regression model. Occasionally, I will get the following message: "InvertY.cpp, v_eval: reached max_iter". Given it is not an error or warning, does this warrant concern? It appears to only occur when the SP approximation is used, so my only thought is to default to another method when I encounter the message.

Thanks!

@jwindle
Copy link
Owner

jwindle commented Dec 7, 2023

I have to look back at this, but I think you may be able use rpg.devroye or rpg.gamma directly. For rpg.devroye you need an integer shape parameter. rpg.gamma is an approximation, ultimately. I'll look into exposing the max_iter parameter so it is possible to increase it.

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

No branches or pull requests

2 participants