From 8a925888fb6da1e07b3b1698466b419d81002c06 Mon Sep 17 00:00:00 2001 From: timoste Date: Tue, 12 Mar 2024 23:47:00 +0100 Subject: [PATCH 1/2] Updating stan code to the most recent syntax --- vignettes/stan/discrete_vars1.stan | 2 +- vignettes/stan/poisson.stan | 2 +- vignettes/stan/rejection_sampling.stan | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vignettes/stan/discrete_vars1.stan b/vignettes/stan/discrete_vars1.stan index 83e0027..4686fff 100644 --- a/vignettes/stan/discrete_vars1.stan +++ b/vignettes/stan/discrete_vars1.stan @@ -3,7 +3,7 @@ data { real r_l; int T; - int y[T]; + array[T] int y; } transformed data { real log_unif; diff --git a/vignettes/stan/poisson.stan b/vignettes/stan/poisson.stan index b9ef2f8..5cb14ca 100644 --- a/vignettes/stan/poisson.stan +++ b/vignettes/stan/poisson.stan @@ -1,6 +1,6 @@ data{ int N; - int y[N]; + array[N] int y; } parameters{ real lambda; diff --git a/vignettes/stan/rejection_sampling.stan b/vignettes/stan/rejection_sampling.stan index 203ee4e..e962b75 100644 --- a/vignettes/stan/rejection_sampling.stan +++ b/vignettes/stan/rejection_sampling.stan @@ -1,6 +1,6 @@ data { int N; - real y[N]; + array[N] real y; } parameters { From ab2ae12f26493e527327e2578f5f6e5c34200230 Mon Sep 17 00:00:00 2001 From: martinmodrak Date: Wed, 13 Mar 2024 16:33:45 +0100 Subject: [PATCH 2/2] Updated small model workflow Stan code to latest array format --- vignettes/small_model_workflow/combined_first.stan | 2 +- vignettes/small_model_workflow/mixture_first.stan | 2 +- vignettes/small_model_workflow/mixture_fixed_log_mix.stan | 2 +- vignettes/small_model_workflow/mixture_fixed_ordered.stan | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vignettes/small_model_workflow/combined_first.stan b/vignettes/small_model_workflow/combined_first.stan index 791b0ba..fe95c00 100644 --- a/vignettes/small_model_workflow/combined_first.stan +++ b/vignettes/small_model_workflow/combined_first.stan @@ -1,6 +1,6 @@ data { int N_obs; - int y[N_obs]; + array[N_obs] int y; int N_predictors; matrix[N_predictors, N_obs] x; diff --git a/vignettes/small_model_workflow/mixture_first.stan b/vignettes/small_model_workflow/mixture_first.stan index 3d780b5..cf94bf0 100644 --- a/vignettes/small_model_workflow/mixture_first.stan +++ b/vignettes/small_model_workflow/mixture_first.stan @@ -1,6 +1,6 @@ data { int N; - int y[N]; + array[N] int y; } parameters { diff --git a/vignettes/small_model_workflow/mixture_fixed_log_mix.stan b/vignettes/small_model_workflow/mixture_fixed_log_mix.stan index df919be..14e912e 100644 --- a/vignettes/small_model_workflow/mixture_fixed_log_mix.stan +++ b/vignettes/small_model_workflow/mixture_fixed_log_mix.stan @@ -1,6 +1,6 @@ data { int N; - int y[N]; + array[N] int y; } parameters { diff --git a/vignettes/small_model_workflow/mixture_fixed_ordered.stan b/vignettes/small_model_workflow/mixture_fixed_ordered.stan index 6832c3a..0c96cc4 100644 --- a/vignettes/small_model_workflow/mixture_fixed_ordered.stan +++ b/vignettes/small_model_workflow/mixture_fixed_ordered.stan @@ -1,6 +1,6 @@ data { int N; - int y[N]; + array[N] int y; } parameters {