I'm not sure why it's slow, though the overdispersion can be problematic,
as can problems where things have the kind of varying scales your priors
seem to be indicating. And it's easy to make a mistake on negative
binomial parameterizations, but if it fits fake data at a smaller scale,
it's probably OK in terms of parameterization.
I'm also not sure whether adding a covariance prior over
random effects would help --- are they highly correlated? If so,
that might help control the sampling, though it gives you a more
complex estimation problem.
- Bob
On Jun 25, 2015, at 1:55 PM, Patrick Miller <
mille...@gmail.com> wrote:
>
> Hi,
>
> I am new to STAN, but have been finding it very powerful for a couple of problems that I have needed to model. The most recent model that I am trying to build has run into speed issues. It is a hierarchical model with a negative binomial response variable that has 2 parameters (plus an intercept) that vary by group. After a while trying to tweak it to fit the data correctly, I decided to do what I should have done in the first place, simplify it and use simulated data.
>
> However, even after doing this, I am still running into what I consider slowness. Perhaps, it is just the nature of the problem, but I figured I would ask for help here. From my limited knowledge about how to debug, what I have been seeing is very large leapfrog jumps with small stepsizes (I increased maximum tree depth to be safe). Is this indicative of a problem with my model?
> --
> 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.
> <stan_dat.rda><stan_negbin_model.txt><stan_r.r>