-
-
Notifications
You must be signed in to change notification settings - Fork 379
Closed
Description
I'm using a fresh copy of dev (both Stan and CmdStan). The new parser error line numbers look great, but they're consistently off the model I'm trying to build. For example,
SYNTAX ERROR, MESSAGE(S) FROM PARSER:
variable "logmu_ooc_C" does not exist.
ERROR at line 124
122: beta_theta ~ normal(0,2);
123:
124: alpha_mu ~ normal(0,2);
^
125: alpha_sigma ~ normal(0,2);
while the model itself is given by
121: beta_theta ~ normal(0,2);
122:
123: alpha_mu ~ normal(0,2);
124: alpha_sigma ~ normal(0,2);
125: alpha_theta ~ normal(0,2);
126:
127: // Measurements
128: for(n in 1:N_ooc) {
129: ooc_count_C[n] ~ neg_binomial_2(exp(logmu_ooc_C), exp(log_sigma_ooc_C));
130: ooc_count_T[n] ~ neg_binomial_2(exp(log_mu_ooc_T), exp(log_sigma_ooc_T));
131: }
The parser should be identifying line 129.
Has anyone seen inconsistencies like this? If someone can confirm then I'll put together a simple reproducible example.