stan-dev / example-models

Example models for Stan
http://mc-stan.org/
775 stars 477 forks source link

Stan programs that do not compile #23

Closed bgoodri closed 3 years ago

bgoodri commented 9 years ago
ARM/Ch.21/finite_populations.stan
ARM/Ch.21/multiple_comparison.stan
ARM/Ch.21/r_sqr.stan
ARM/Ch.23/educational_subsidy.stan
bugs_examples/vol2/pines/fit.stan
bugs_examples/vol2/pines/pines-3.stan
bugs_examples/vol3/fire/fire.stan
bgoodri commented 9 years ago
ARM/Ch.21/finite_populations.stan:
variable "a_0" does not exist.
ERROR at line 15

ARM/Ch.21/multiple_comparison.stan
variable "theta" does not exist.
ERROR at line 12

ARM/Ch.21/r_sqr.stan
variable "j" does not exist.
ERROR at line 11

ARM/Ch.23/educational_subsidy.stan
variable "g_0" does not exist.
ERROR at line 26

bugs_examples/vol2/pines/fit.stan
PARSER EXPECTED: <model declaration (or perhaps an earlier block)>

bugs_examples/vol2/pines/pines-3.stan
ERROR at line 55: PARSER EXPECTED: ")"
 53:        + normal_log(gamma, 0, sqrt(1e6))
 54:        + normal_log(delta, 0, sqrt(1e4))
 55:        + gamma_log(tau[2], 0.0001, 0.0001);

bugs_examples/vol3/fire/fire.stan
ERROR at line 49: PARSER EXPECTED: ")"
 47:      for (i in 1:N) {  
 48:        if (theta > x[i]) 
 49:          lpa[i] <- ( log_tmp,
                                 ^
 50:                      + neg_log1p_temp
ariddell commented 9 years ago

Might be useful to setup a travis-ci script that tests these all.