You should switch to a non-centered parameterization.
That's also about centering the standard deviation on
the log scale, which is the real killer. So this:
> raw_subject_type1_effects ~ normal(0, sigma_subject_type1);
> raw_subject_type2_effects ~ normal(0, sigma_subject_type2);
should be ~ normal(0, 1) and then multiply the sigma_xxx back
in on the outside.
Also, this
> subject_type2_effects <- raw_subject_type2_effects - mean(raw_subject_type2_effects);
is not what you want to do. You already gave them a zero-mean
prior --- that's enough. What you're doing will hurt HMC because
it collapses multiple parameters and leads to non-identifiability.
The other problem with identifiability is the K vs. (K-1) linear
predictor parameterizations of a K-way categorical outcome. Without strong
priors, the categorical logit parameters aren't well identified.
You can move to a (K-1)-predictor parameterization rather
than a K-predictor parameterization --- we still haven't gotten
around to building that in, but there's a discussion in the manual
of how to do it --- see the note on identifiability in the
categorical_logit section.
- Bob
> On Jan 8, 2016, at 4:03 PM,
ricka...@gmail.com wrote:
>
> Hello,
>
> I've created a categorical logit model that, like the title says, is extremely slow to finish sampling; my other models take no longer than an hour, and this one takes roughly about 24 hours to converge.
>
> In each trial I have 6 subjects: 3 of subject type I and 3 of subject type II. One of those six is indicated by the response variable and the different groups should have a different intercept, as the task is harder for type II than it is type I. Each subject participates as both types and there are ~400 subjects and ~120,000 trials. I also wanted to use zero-centering on the individual level effects.
> --
> 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.