The problem is going to arise when you try to generate a RNG
that will overflow the integer sizes (the max allowable value is
roughly 2^31). You can modify the code to catch cases where
the parameters give some chance of overflowing and just return -1
there in the generated quantities block. I'll make a note of
that in the manual, but it's going to be buried so deep nobody's
likely to see it:
https://github.com/stan-dev/stan/issues/1709#issuecomment-187382422
You didn't send enough of your program (ideally send ***all*** of
it) for us to diagnose what the root cause is. But the answer is
probably that you want more reasonable priors and/or inits. Or
you want to guard against the problem with a conditional in the
generated quantities.
If you're generating int variates on the scale of 2^31, you
probably have bigger problems. At that point, normal approximations
are pretty darn good.
- Bob
> --
> 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.