Skip to content

Commit

Permalink
Merge pull request #94 from timostenz/master
Browse files Browse the repository at this point in the history
Updating stan code to the most recent syntax
  • Loading branch information
martinmodrak authored Mar 13, 2024
2 parents defb7d2 + ab2ae12 commit d11927f
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion vignettes/small_model_workflow/combined_first.stan
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
data {
int<lower=0> N_obs;
int y[N_obs];
array[N_obs] int y;

int<lower=1> N_predictors;
matrix[N_predictors, N_obs] x;
Expand Down
2 changes: 1 addition & 1 deletion vignettes/small_model_workflow/mixture_first.stan
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
data {
int<lower=0> N;
int y[N];
array[N] int y;
}

parameters {
Expand Down
2 changes: 1 addition & 1 deletion vignettes/small_model_workflow/mixture_fixed_log_mix.stan
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
data {
int<lower=0> N;
int y[N];
array[N] int y;
}

parameters {
Expand Down
2 changes: 1 addition & 1 deletion vignettes/small_model_workflow/mixture_fixed_ordered.stan
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
data {
int<lower=0> N;
int y[N];
array[N] int y;
}

parameters {
Expand Down
2 changes: 1 addition & 1 deletion vignettes/stan/discrete_vars1.stan
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ data {
real<lower=0> r_l;

int<lower=1> T;
int<lower=0> y[T];
array[T] int<lower=0> y;
}
transformed data {
real log_unif;
Expand Down
2 changes: 1 addition & 1 deletion vignettes/stan/poisson.stan
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
data{
int N;
int y[N];
array[N] int y;
}
parameters{
real<lower = 0> lambda;
Expand Down
2 changes: 1 addition & 1 deletion vignettes/stan/rejection_sampling.stan
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
data {
int<lower=0> N;
real y[N];
array[N] real y;
}

parameters {
Expand Down

0 comments on commit d11927f

Please sign in to comment.