-
-
Notifications
You must be signed in to change notification settings - Fork 380
Closed
stan-dev/stanc3
#1563Description
Good day,
I've written a Stan program that takes in an indicator int<lower=0, upper=1> NB to toggle between Poisson and negative binomial models.
I model the overdispersion terms hierarchically and In the parameters block, I define:
parameters {
vector<lower=0>[NB] phi_a, phi_t; // NB overdispersion intercept and scale
sum_to_zero_vector[NB* S] phi_z; // overdispersion z-scores
}When NB = 0 I get the following error and the program fails to run:
Exception: no more scalars to read
When I remove the indicator and replace it with
parameters {
sum_to_zero_vector[S] phi_z; // overdispersion z-scores
}It works fine. I tried to create a reprex to isolate the issue but didn't manage.
Cheers,
Matt
Metadata
Metadata
Assignees
Labels
No labels