--
You received this message because you are subscribed to the Google Groups "Stan users mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stan-users+...@googlegroups.com.
To post to this group, send email to stan-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I have tried negative binomial with no extra luck.
I will have a look at the sampler parameters after adaptation but the speed up isn't exactly enormous.
I will try one of the continuous approximations to the Poisson and see if that makes a difference. I will try variable rescaling as well.
As an aside, how is the log factorial calculated in the Poisson PDF? Any reason to think there might be a numerical instability there? I guess this wouldn't matter for what I'm doing though as effect should be constant at all iterations
The suggestion to look at the mass matrix was a good one. The inverse diagonal weights reported range from ~1e-6 to ~10. Looking at the posterior summary outputs, it turns out that some of my parameters are just much better constrained in the regression than others.
I guess that this is the source of the problem. I will try rescaling my inputs so that the likely posterior has a much more uniform scale over the different variables.
Thanks once again for your help guys - I realise how busy you are and how many requests you get and am grateful for your assistance.
Is there any way to pass in an initial guess at the mass matrix? Or is this for a future release? Being able to specify guessed scales for the parameters would be more convenient in some applications than having to recode parameters.
Unfortunately it just looks like I have a slow model. My data re are constructed so that y=0 never appears, so I have to use a ~ poisson T[1,] statement, which is unfortunately not vectorised.
I'm happy that the model is working as intended, and the run time is long but not unmanageably. Thanks for your help.