Skip to content

Commit

Permalink
Fix version array type
Browse files Browse the repository at this point in the history
  • Loading branch information
wellington36 committed Sep 27, 2024
1 parent d479d77 commit 1843dde
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions stan/MCMC_COMP_2_brms.stan
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ functions{
}
data{
int<lower=0> K;
int<lower=0> n[K];
int<lower=0> y[K];
array[K] int<lower=0> n;
array[K] int<lower=0> y;
int<lower=0> N;
real<lower=0> s_mu;
real<lower=0> r_mu;
Expand All @@ -19,7 +19,7 @@ parameters{
}
transformed parameters{
real log_mu = log(mu);
real log_norm_const[2] = log_Z_COMP_brms2(log_mu, nu, eps, M);
array[2] real log_norm_const = log_Z_COMP_brms2(log_mu, nu, eps, M);
}
model{
mu ~ gamma(s_mu, r_mu);
Expand Down
6 changes: 3 additions & 3 deletions stan/MCMC_COMP_brms.stan
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ functions{
}
data{
int<lower=0> K;
int<lower=0> n[K];
int<lower=0> y[K];
array[K] int<lower=0> n;
array[K] int<lower=0> y;
int<lower=0> N;
real<lower=0> s_mu;
real<lower=0> r_mu;
Expand All @@ -19,7 +19,7 @@ parameters{
}
transformed parameters{
real log_mu = log(mu);
real log_norm_const[2] = log_Z_COMP_brms(log_mu, nu, eps, M);
array[2] real log_norm_const = log_Z_COMP_brms(log_mu, nu, eps, M);
}
model{
mu ~ gamma(s_mu, r_mu);
Expand Down
6 changes: 3 additions & 3 deletions stan/MCMC_COMP_brms_bulk.stan
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ functions{
}
data{
int<lower=0> K;
int<lower=0> n[K];
int<lower=0> y[K];
array[K] int<lower=0> n;
array[K] int<lower=0> y;
int<lower=0> N;
real<lower=0> s_mu;
real<lower=0> r_mu;
Expand All @@ -19,7 +19,7 @@ parameters{
}
transformed parameters{
real log_mu = log(mu);
real log_norm_const[2] = log_Z_COMP_brms_bulk(log_mu, nu, eps, M);
array[K] real log_norm_const = log_Z_COMP_brms_bulk(log_mu, nu, eps, M);
}
model{
mu ~ gamma(s_mu, r_mu);
Expand Down

0 comments on commit 1843dde

Please sign in to comment.