Skip to content

Commit

Permalink
hotfix: no more need to generate gt_mean/var
Browse files Browse the repository at this point in the history
  • Loading branch information
sbfnk committed Mar 22, 2024
1 parent eeb3347 commit e9eab37
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions inst/stan/estimate_infections.stan
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,6 @@ generated quantities {
array[ot_h] int imputed_reports;
vector[estimate_r > 0 ? 0: ot_h] gen_R;
vector[ot_h - 1] r;
real gt_mean;
real gt_var;
vector[return_likelihood ? ot : 0] log_lik;
profile("generated quantities") {
if (estimate_r == 0){
Expand All @@ -211,8 +209,6 @@ generated quantities {
delay_np_pmf_groups, delay_params_sample, delay_params_groups,
delay_dist, 1, 1, 0
);
gt_mean = rev_pmf_mean(sampled_gt_rev_pmf, 1);
gt_var = rev_pmf_var(sampled_gt_rev_pmf, 1, gt_mean);
// calculate Rt using infections and generation time
gen_R = calculate_Rt(
infections, seeding_time, sampled_gt_rev_pmf, rt_half_window
Expand Down

0 comments on commit e9eab37

Please sign in to comment.