-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implements suggestions by @hsbadr See #213 (comment) #213 (comment) #213 (comment) For now not implementing comparison to the approximate growth rate as this seems quite a specific use case that could also be done outside the stan model. Also not implementing any approximate growth rate from seeding time - instead minimum seeding time is now set to 1, so the last seeding time is used to calculate the first growth rate.
- Loading branch information
Showing
22 changed files
with
281 additions
and
187 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
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,2 +1 @@ | ||
int backcalc_prior; // Prior type to use for backcalculation | ||
int rt_half_window; // Half the moving average window used when calculating Rt |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
int process_model; // 0 = infections; 1 = growth; 2 = rt | ||
int bp_n; // no of breakpoints (0 = no breakpoints) | ||
int breakpoints[t - seeding_time]; // when do breakpoints occur | ||
int cov_mean_const; // 0 = not const mean; 1 = const mean | ||
real<lower = 0> cov_mean_mean[cov_mean_const]; // const covariate mean | ||
real<lower = 0> cov_mean_sd[cov_mean_const]; // const covariate sd | ||
vector<lower = 0>[cov_mean_const ? 0 : t] cov_t; // time-varying covariate mean |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
real initial_infections[seeding_time ? n : 0, 1]; // initial logged infections | ||
real initial_growth[seeding_time > 1 ? n : 0, 1]; //initial growth | ||
|
||
matrix[n, t - seeding_time] R; // reproduction number | ||
int gt_dist[1]; // 0 = lognormal; 1 = gamma | ||
vector[n] R[t - seeding_time]; // reproduction number | ||
int pop; // susceptible population | ||
|
||
int<lower = 0> gt_id; // id of generation time |
Oops, something went wrong.