If you can build a model of the overdispersion, you can
use that directly. But I'd be nervous about a linear
variance formula with a negation --- you might want to
use the log link function in a GLM to characterize it.
The negative binomial is a compound Poisson-gamma :-)
The best way to implement a compound distribution like
the negative binomial (or student-T) is to integrate out
the latent parameter. If you can't do that, then you
can just code everything up explicitly using the latent
parameters, but it can be much slower sampling.
- 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.
> For more options, visit
https://groups.google.com/d/optout.
> <Hetero.jpg><nb3.stan>