It can be hard to fit groups with few members, and 3 is
difficult. It's not impossible, but you'll need reasonable
priors.
Otherwise, the basic idea of grouping parameters in a hierarchical
model is exchangeability (given the inputs for modeling).
As to assuming a mean of 0 at the top of the hierarchy, you
probably want a fairly diffuse standard deviation. And
that should be chosen given what you know about the problem.
Things like whether the predictors standardized.
There's also a major techncial problem for Stan
with the model as formulated.
For the sampler to work effectively, all parameters should
have support at any point that satisfies their constraint.
In the attached model, a variable is declared as
vector[J] beta_raw; // standard covariate coefficients
without constraints and then given a constrained density:
beta_raw[1] ~ uniform(-5, 5);
It would probably make sense to have a more meaningful prior
than uniform.
- 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.
>