Open paciorek opened 7 years ago
Thanks much for reporting. We really need to bring all of our old programs up to current standards.
I'd be inclined to use a vectorized sampling statement to make it
dN[i] ~ poisson_log(log_Y[i] + beta * Z[i] + log_dL0);
assuming all the other types are compatible. That assumes log(Y)
is defined as log_Y
and same for dL0
.
It looks like the use of poisson_log is incorrect, because the expression used (see below) is for the Poisson rate not the Poisson log rate.
In non-deprecated Stan code, the revised code would be:
Or perhaps a sampling statement is cleaner: