Skip to content

Commit

Permalink
Changed priors for generic weakly informative priors
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMerSci committed Apr 1, 2024
1 parent b9e322d commit e12d98d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions stan/08_stan_model0.stan
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ parameters {
model {

// Prios:
Intercept ~ normal(0,1.5);
sigma ~ exponential(5);
Intercept ~ normal(0, 1);
sigma ~ exponential(3);


log_biomass_flow ~ normal(Intercept, sigma);
Expand Down
4 changes: 2 additions & 2 deletions stan/08_stan_model1.stan
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ model {
vector[n] mu_flow;

// Priors:
alpha ~ normal(-4, 2);
sigma ~ exponential(5);
alpha ~ normal(0, 1);
sigma ~ exponential(3);

// Likelihood:
// Computing target's mean
Expand Down
4 changes: 2 additions & 2 deletions stan/08_stan_model2.stan
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ model {
vector[n] mu_flow;

// Priors:
mu_alpha ~ normal(-4, 2);
mu_alpha ~ normal(0, 1);
alpha ~ normal(mu_alpha, sd_alpha);
sd_alpha ~ exponential(3);
sigma ~ exponential(5);
sigma ~ exponential(3);

// Computing target's mean
mu_flow = alpha[pred_id] + log_biomass_prey + log_abundance_predator;
Expand Down
10 changes: 5 additions & 5 deletions stan/08_stan_model3.stan
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ model {
vector[n] pred_factor;

// Priors:
mu_alpha ~ normal(-5,2);
mu_alpha ~ normal(0, 1);
alpha ~ normal(mu_alpha, sd_alpha);
sd_alpha ~ exponential(1);
mu_ht ~ normal(-3,2);
sd_alpha ~ exponential(3);
mu_ht ~ normal(0, 1);
ht ~ normal(mu_ht, sd_ht);
sd_ht ~ exponential(1);
sigma ~ exponential(5);
sd_ht ~ exponential(3);
sigma ~ exponential(3);


// Computing predators part for the numerator and denominator
Expand Down
10 changes: 5 additions & 5 deletions stan/08_stan_model4.stan
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ model {
vector[n] pred_factor;

// Priors:
mu_alpha ~ normal(-5,2);
mu_alpha ~ normal(0, 1);
alpha ~ normal(mu_alpha, sd_alpha);
sd_alpha ~ exponential(1);
mu_ht ~ normal(-3,2);
sd_alpha ~ exponential(3);
mu_ht ~ normal(0, 1);
ht ~ normal(mu_ht, sd_ht);
sd_ht ~ exponential(1);
sigma ~ exponential(5);
sd_ht ~ exponential(3);
sigma ~ exponential(3);

// Computing predators part for the numerator and denominator

Expand Down

0 comments on commit e12d98d

Please sign in to comment.