I'd recommend upgrading to 2.11 and using our new syntax!
I'd declare mu to be the type you want rather than trying
to convert a vector to array.
This
> log1m_exp(neg_binomial_2_log_log(0,mu[n],phi)))
is just the log of 1 minus the neg binomial evaluated
at 0, which gives you truncation below at 1 inclusive.
The bigger point is that negative binomial goes above
12, but your data doesn't. Could it have? If not, negative
binomial is probably the wrong model here.
- 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.
> To post to this group, send email to
stan-...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.