From 8a925888fb6da1e07b3b1698466b419d81002c06 Mon Sep 17 00:00:00 2001 From: timoste Date: Tue, 12 Mar 2024 23:47:00 +0100 Subject: [PATCH] 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 {