Skip to content

Commit

Permalink
chore: minor syntax correction in stan files
Browse files Browse the repository at this point in the history
  • Loading branch information
ntorresd committed Apr 23, 2024
1 parent bb5beb3 commit ef45b15
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions inst/stan/constant.stan
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
data {
int<lower=0> n_obs;
int<lower=1> age_max;
int n_pos[n_obs];
int n_total[n_obs];
int <lower=1>age_max;
matrix[n_obs, age_max] observation_exposure_matrix;
}

Expand All @@ -28,7 +28,6 @@ transformed parameters {
model {
for (i in 1:n_obs)
n_pos[i] ~ binomial(n_total[i], prob_infected[i]);

lambda0 ~ uniform (0, 2);
}

Expand All @@ -42,6 +41,3 @@ generated quantities{
logLikelihood[i] = binomial_lpmf(n_pos[i] | n_total[i], prob_infected[i]);
}
}



2 changes: 1 addition & 1 deletion inst/stan/tv_normal.stan
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ functions {

data {
int<lower=0> n_obs;
int<lower=1> age_max;
int n_pos[n_obs];
int n_total[n_obs];
int <lower=1>age_max;
matrix[n_obs, age_max] observation_exposure_matrix;

// prior choices
Expand Down
2 changes: 1 addition & 1 deletion inst/stan/tv_normal_log.stan
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ functions {

data {
int<lower=0> n_obs;
int<lower=1> age_max;
int n_pos[n_obs];
int n_total[n_obs];
int <lower=1>age_max;
matrix[n_obs, age_max] observation_exposure_matrix;

// prior choices
Expand Down

0 comments on commit ef45b15

Please sign in to comment.