tests/testthat/_snaps/enw_summarise_samples.md

enw_summarise_samples summarises samples as expected

Code
  summary[1:10]
Output
      reference_date .group report_date max_confirm location age_group confirm
   1:     2021-08-03      1  2021-08-22         149       DE       00+     149
   2:     2021-08-04      1  2021-08-22         166       DE       00+     166
   3:     2021-08-05      1  2021-08-22         133       DE       00+     133
   4:     2021-08-06      1  2021-08-22         137       DE       00+     137
   5:     2021-08-07      1  2021-08-22         139       DE       00+     139
   6:     2021-08-08      1  2021-08-22          97       DE       00+      97
   7:     2021-08-09      1  2021-08-22          58       DE       00+      58
   8:     2021-08-10      1  2021-08-22         175       DE       00+     175
   9:     2021-08-11      1  2021-08-22         233       DE       00+     233
  10:     2021-08-12      1  2021-08-22         237       DE       00+     237
      cum_prop_reported delay prop_reported    mean median       sd    mad  q5
   1:                 1    19   0.000000000 149.000    149 0.000000 0.0000 149
   2:                 1    18   0.000000000 167.426    167 1.316912 1.4826 166
   3:                 1    17   0.000000000 135.812    136 1.867121 1.4826 133
   4:                 1    16   0.000000000 141.255    141 2.341679 2.2239 138
   5:                 1    15   0.007194245 145.884    146 3.085460 2.9652 141
   6:                 1    14   0.000000000 103.681    103 3.072243 2.9652  99
   7:                 1    13   0.000000000  62.762     62 2.461588 1.4826  59
   8:                 1    12   0.000000000 185.138    185 3.827742 4.4478 180
   9:                 1    11   0.000000000 255.903    255 6.410514 5.9304 246
  10:                 1    10   0.004219409 267.488    267 7.975931 7.4130 255
      q50    q95
   1: 149 149.00
   2: 167 170.00
   3: 136 139.00
   4: 141 145.00
   5: 146 151.05
   6: 103 109.00
   7:  62  67.00
   8: 185 192.00
   9: 255 267.00
  10: 267 281.00

enw_summarise_samples adds artificial samples when a delay smaller than specified was modelled

Code
  summary[1:10]
Output
      reference_date .group report_date max_confirm location age_group confirm
   1:     2021-08-01      1  2021-08-20          77       DE       00+      77
   2:     2021-08-02      1  2021-08-21          59       DE       00+      59
   3:     2021-08-03      1  2021-08-22         149       DE       00+     149
   4:     2021-08-04      1  2021-08-22         166       DE       00+     166
   5:     2021-08-05      1  2021-08-22         133       DE       00+     133
   6:     2021-08-06      1  2021-08-22         137       DE       00+     137
   7:     2021-08-07      1  2021-08-22         139       DE       00+     139
   8:     2021-08-08      1  2021-08-22          97       DE       00+      97
   9:     2021-08-09      1  2021-08-22          58       DE       00+      58
  10:     2021-08-10      1  2021-08-22         175       DE       00+     175
      cum_prop_reported delay prop_reported    mean median       sd    mad  q5
   1:                 1    19   0.000000000  77.000     77 0.000000 0.0000  77
   2:                 1    19   0.016949153  59.000     59 0.000000 0.0000  59
   3:                 1    19   0.000000000 149.000    149 0.000000 0.0000 149
   4:                 1    18   0.000000000 167.426    167 1.316912 1.4826 166
   5:                 1    17   0.000000000 135.812    136 1.867121 1.4826 133
   6:                 1    16   0.000000000 141.255    141 2.341679 2.2239 138
   7:                 1    15   0.007194245 145.884    146 3.085460 2.9652 141
   8:                 1    14   0.000000000 103.681    103 3.072243 2.9652  99
   9:                 1    13   0.000000000  62.762     62 2.461588 1.4826  59
  10:                 1    12   0.000000000 185.138    185 3.827742 4.4478 180
      q50    q95
   1:  77  77.00
   2:  59  59.00
   3: 149 149.00
   4: 167 170.00
   5: 136 139.00
   6: 141 145.00
   7: 146 151.05
   8: 103 109.00
   9:  62  67.00
  10: 185 192.00


epiforecasts/epinowcast documentation built on Feb. 3, 2025, 4:17 p.m.