I didn't understand what "group" was in your notation. When you
say "specify another vector", what exactly did you mean---a parameter,
data, or what?
Can you write out the model in mathematical terms, specifically what
you want mu to be in
mu = ln_r0 + ln_biomass + bT*temp;
ln_rate ~ normal(mu, sigma);
Translating to Stan shouldn't be a problem.
P.S. We're shutting this list down in a week or two; the list
has moved to:
You'll find more people there now than here to answer your question.
Feel free (nay, encouraged) to cross-post.
> On Jun 1, 2017, at 5:23 AM, Daniel Padfield <d.padfi...@gmail.com
> Hi all
> Been looking for some documentation on coding interactions in Stan models and haven't found anything explicitly explaining things. Any recommendations for where to look?
> My current model looks at how flux of an entire community is influenced by the individuals within it. Consequently I have multiple masses (K) for each rate (N).
> Finally came back to this after 2 months and managed to get it working but if I have a group factor for each sample how would I code the interaction on each parameter, especially that a is wrapped up in log_sum_exp(a * segment(mass, pos, mass_n[n]))
You just need to code up the linear predictor. So I'm not sure what
you're having problem with doing this. I also have problems with
words like "factor" because it's all tied up with stats terminology I never
understood and R conventions.
> 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