Data4DM / stanify

Bridging System dynamics tool (Vensim) and Bayesian computation tool (Stan)
https://data4dm.github.io/stanify/
2 stars 1 forks source link

Exposed parameter update error #1

Open hyunjimoon opened 2 years ago

hyunjimoon commented 2 years ago

I keep facing an error where driving data (one we should supply numeric value with lookup structure) is written twice. I wonder whether this line of code should be fixed to

self.stan_model_context.exposed_parameters.update(name)

not

self.stan_model_context.exposed_parameters.update(used_variable_names)

could you please check? @dashadower

hyunjimoon commented 2 years ago

Q2. Also, where is .update defined from the above command? The following error comes up using self.stan_model_context.exposed_parameters.update(name)

vector vensim_ode_func(real time, vector outcome, real d, real i, real beta, real e, real c, real gamma, real n, real t, real f, real u, real delta, real o, real s, real m, real alpha, real r, real g, real p, real v, real _){