> On Mar 7, 2017, at 10:38 AM, Jon Sjoberg <
jon.s...@gmail.com> wrote:
>
> I'm not sure how one finds the treedepth information, other than from shinystan,
https://cran.r-project.org/web/packages/rstan/vignettes/stanfit-objects.html
All those different group intercepts plus a global intercept mean that the
model's only identified by the prior --- you can add to one group and subtract
from another with no difference in likelihood.
The program you provided is not non-centered, because sigma != 1. You
only non-centered the location (necessary given that you have a global intercept)
and not the scale. You could also try starting without the hierarchical structure
and see what you get.
You can also vectorize this
for(n in 1:N)
t[n] = a + ap[p[n]] + ac[c[n]] + as[s[n]] + acc[c_c[n]] + alc[lc[n]] + alf*lf[n] + aser*ser[n] +bme*m_e[n];
as
t = a + ap[p] + ac[c] + as[s] + acc[c_c] + ... + aser * ser + bme * me;
assuming these are all defined as vectors rather than arrays.
- Bob