-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update deprecated syntax for future rstan compatibility (#453)
* Update array syntax * CDF to LCDF
- Loading branch information
Showing
22 changed files
with
135 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
int<lower = 0> delay_n; // number of delay distributions | ||
int<lower = 0> delay_n_p; // number of parametric delay distributions | ||
int<lower = 0> delay_n_np; // number of nonparametric delay distributions | ||
real delay_mean_mean[delay_n_p]; // prior mean of mean delay distribution | ||
real<lower = 0> delay_mean_sd[delay_n_p]; // prior sd of mean delay distribution | ||
real<lower = 0> delay_sd_mean[delay_n_p]; // prior sd of sd of delay distribution | ||
real<lower = 0> delay_sd_sd[delay_n_p]; // prior sd of sd of delay distribution | ||
int<lower = 1> delay_max[delay_n_p]; // maximum delay distribution | ||
int<lower = 0> delay_dist[delay_n_p]; // 0 = lognormal; 1 = gamma | ||
array[delay_n_p] real delay_mean_mean; // prior mean of mean delay distribution | ||
array[delay_n_p] real<lower = 0> delay_mean_sd; // prior sd of mean delay distribution | ||
array[delay_n_p] real<lower = 0> delay_sd_mean; // prior sd of sd of delay distribution | ||
array[delay_n_p] real<lower = 0> delay_sd_sd; // prior sd of sd of delay distribution | ||
array[delay_n_p] int<lower = 1> delay_max; // maximum delay distribution | ||
array[delay_n_p] int<lower = 0> delay_dist; // 0 = lognormal; 1 = gamma | ||
int<lower = 0> delay_np_pmf_max; // number of nonparametric pmf elements | ||
vector<lower = 0, upper = 1>[delay_np_pmf_max] delay_np_pmf; // ragged array of fixed PMFs | ||
int<lower = 1> delay_np_pmf_groups[delay_n_np + 1]; // links to ragged array | ||
int<lower = 0> delay_weight[delay_n_p]; | ||
array[delay_n_np + 1] int<lower = 1> delay_np_pmf_groups; // links to ragged array | ||
array[delay_n_p] int<lower = 0> delay_weight; | ||
|
||
int<lower = 0> delay_types; // number of delay types | ||
int<lower = 0> delay_types_p[delay_n]; // whether delay types are parametric | ||
int<lower = 0> delay_types_id[delay_n]; // whether delay types are parametric | ||
int<lower = 0> delay_types_groups[delay_types + 1]; // index of each delay (parametric or non) | ||
array[delay_n] int<lower = 0> delay_types_p; // whether delay types are parametric | ||
array[delay_n] int<lower = 0> delay_types_id; // whether delay types are parametric | ||
array[delay_types + 1] int<lower = 0> delay_types_groups; // index of each delay (parametric or non) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
real gt_mean_sd[1]; // prior sd of mean generation time | ||
real gt_mean_mean[1]; // prior mean of mean generation time | ||
real gt_sd_mean[1]; // prior mean of sd of generation time | ||
real gt_sd_sd[1]; // prior sd of sd of generation time | ||
int<lower = 1> gt_max[1]; // maximum generation time | ||
int gt_fixed[1]; // 0 = variable gt; 1 = fixed gt | ||
int gt_dist[1]; // distribution (0 = lognormal, 1 = gamma) | ||
array[1] real gt_mean_sd; // prior sd of mean generation time | ||
array[1] real gt_mean_mean; // prior mean of mean generation time | ||
array[1] real gt_sd_mean; // prior mean of sd of generation time | ||
array[1] real gt_sd_sd; // prior sd of sd of generation time | ||
array[1] int<lower = 1> gt_max; // maximum generation time | ||
array[1] int gt_fixed; // 0 = variable gt; 1 = fixed gt | ||
array[1] int gt_dist; // distribution (0 = lognormal, 1 = gamma) | ||
int gt_weight; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
int<lower = 0> delay_n; // number of delay distribution distributions | ||
int<lower = 0> delay_n_p; // number of parametric delay distributions | ||
int<lower = 0> delay_n_np; // number of nonparametric delay distributions | ||
real delay_mean[n, delay_n_p]; // prior mean of mean delay distribution | ||
real<lower = 0> delay_sd[n, delay_n_p]; // prior sd of sd of delay distribution | ||
int<lower = 1> delay_max[delay_n_p]; // maximum delay distribution | ||
int<lower = 0> delay_dist[delay_n_p]; // 0 = lognormal; 1 = gamma | ||
array[n, delay_n_p] real delay_mean; // prior mean of mean delay distribution | ||
array[n, delay_n_p] real<lower = 0> delay_sd; // prior sd of sd of delay distribution | ||
array[delay_n_p] int<lower = 1> delay_max; // maximum delay distribution | ||
array[delay_n_p] int<lower = 0> delay_dist; // 0 = lognormal; 1 = gamma | ||
int<lower = 0> delay_np_pmf_max; // number of nonparametric pmf elements | ||
vector<lower = 0, upper = 1>[delay_np_pmf_max] delay_np_pmf; // ragged array of fixed PMFs | ||
int<lower = 1> delay_np_pmf_groups[delay_n_np + 1]; // links to ragged array | ||
int delay_weight[delay_n_p]; | ||
array[delay_n_np + 1] int<lower = 1> delay_np_pmf_groups; // links to ragged array | ||
array[delay_n_p] int delay_weight; | ||
|
||
int<lower = 0> delay_types; // number of delay types | ||
int<lower = 0> delay_types_p[delay_n]; // whether delay types are parametric | ||
int<lower = 0> delay_types_id[delay_n]; // whether delay types are parametric | ||
int<lower = 0> delay_types_groups[delay_types + 1]; // index of each delay (parametric or non) | ||
array[delay_n] int<lower = 0> delay_types_p; // whether delay types are parametric | ||
array[delay_n] int<lower = 0> delay_types_id; // whether delay types are parametric | ||
array[delay_types + 1] int<lower = 0> delay_types_groups; // index of each delay (parametric or non) | ||
|
||
int<lower = 0> delay_id; // id of generation time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
int day_of_week[t - seeding_time]; // day of the week indicator (1 - 7) | ||
array[t - seeding_time] int day_of_week; // day of the week indicator (1 - 7) | ||
int week_effect; // should a day of the week effect be estimated | ||
real<lower = 0> day_of_week_simplex[n, week_effect]; | ||
array[n, week_effect] real<lower = 0> day_of_week_simplex; | ||
int obs_scale; | ||
real<lower = 0, upper = 1> frac_obs[n, obs_scale]; | ||
array[n, obs_scale] real<lower = 0, upper = 1> frac_obs; | ||
int model_type; | ||
real<lower = 0> rep_phi[n, model_type]; // overdispersion of the reporting process | ||
array[n, model_type] real<lower = 0> rep_phi; // overdispersion of the reporting process | ||
int<lower = 0> trunc_id; // id of truncation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.