Closed maxdrohde closed 4 months ago
In the documentation on Missing Data (https://mc-stan.org/docs/stan-users-guide/missing-data.html) I think the code under the heading "Sliced missing data" should be updated for the new Stan array syntax.
Below is what I think it should be:
data { int<lower=0> N_obs; int<lower=0> N_mis; int<lower=1, upper=N_obs + N_mis> ii_obs[N_obs]; int<lower=1, upper=N_obs + N_mis> ii_mis[N_mis]; array[N_obs] real y_obs; }
data { int<lower=0> N_obs; int<lower=0> N_mis; array[N_obs] int<lower=1, upper=N_obs + N_mis> ii_obs; array[N_mis] int<lower=1, upper=N_obs + N_mis> ii_mis; array[N_obs] real y_obs; }
thanks - fixed!
In the documentation on Missing Data (https://mc-stan.org/docs/stan-users-guide/missing-data.html) I think the code under the heading "Sliced missing data" should be updated for the new Stan array syntax.
Below is what I think it should be:
Current
Suggested