Skip to content

Commit 84081c2

Browse files
committed
differences for PR #187
1 parent 4641101 commit 84081c2

26 files changed

+141
-6398
lines changed

config.yaml

Lines changed: 0 additions & 86 deletions
This file was deleted.

create-forecast.md

Lines changed: 30 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -196,18 +196,27 @@ estimates <- EpiNow2::epinow(
196196
# Add observation model
197197
obs = EpiNow2::obs_opts(scale = obs_scale)
198198
)
199+
```
199200

201+
``` output
202+
WARN [2025-10-13 17:36:52] epinow: There were 1 transitions after warmup that exceeded the maximum treedepth. Increase max_treedepth above 12. See
203+
https://mc-stan.org/misc/warnings.html#maximum-treedepth-exceeded -
204+
WARN [2025-10-13 17:36:52] epinow: Examine the pairs() plot to diagnose sampling problems
205+
-
206+
```
207+
208+
``` r
200209
base::summary(estimates)
201210
```
202211

203212
``` output
204213
measure estimate
205214
<char> <char>
206-
1: New infections per day 20133 (13440 -- 30167)
215+
1: New infections per day 19961 (13183 -- 30101)
207216
2: Expected change in reports Likely decreasing
208217
3: Effective reproduction no. 0.96 (0.76 -- 1.2)
209-
4: Rate of growth -0.013 (-0.095 -- 0.067)
210-
5: Doubling/halving time (days) -55 (10 -- -7.3)
218+
4: Rate of growth -0.013 (-0.096 -- 0.069)
219+
5: Doubling/halving time (days) -55 (10 -- -7.2)
211220
```
212221

213222

@@ -291,12 +300,6 @@ estimate_cases_to_deaths <- EpiNow2::estimate_secondary(
291300
)
292301
```
293302

294-
``` output
295-
WARN [2025-09-25 13:36:12] estimate_secondary (chain: 1): Tail Effective Samples Size (ESS) is too low, indicating posterior variances and tail quantiles may be unreliable.
296-
Running the chains for more iterations may help. See
297-
https://mc-stan.org/misc/warnings.html#tail-ess -
298-
```
299-
300303

301304
::::::::::::::::::::::::::::::::::::: callout
302305

@@ -527,21 +530,34 @@ ebola_estimates <- EpiNow2::epinow(
527530
# horizon needs to be 14 days to create two week forecast (default is 7 days)
528531
forecast = EpiNow2::forecast_opts(horizon = 14)
529532
)
533+
```
534+
535+
``` output
536+
WARN [2025-10-13 17:37:56] epinow: There were 1 divergent transitions after warmup. See
537+
https://mc-stan.org/misc/warnings.html#divergent-transitions-after-warmup
538+
to find out why this is a problem and how to eliminate them. -
539+
WARN [2025-10-13 17:37:56] epinow: Examine the pairs() plot to diagnose sampling problems
540+
-
541+
WARN [2025-10-13 17:37:59] epinow: Tail Effective Samples Size (ESS) is too low, indicating posterior variances and tail quantiles may be unreliable.
542+
Running the chains for more iterations may help. See
543+
https://mc-stan.org/misc/warnings.html#tail-ess -
544+
```
530545

546+
``` r
531547
summary(ebola_estimates)
532548
```
533549

534550
``` output
535551
measure estimate
536552
<char> <char>
537-
1: New infections per day 91 (47 -- 190)
553+
1: New infections per day 92 (50 -- 184)
538554
2: Expected change in reports Increasing
539-
3: Effective reproduction no. 1.6 (1.1 -- 2.4)
540-
4: Rate of growth 0.041 (0.0027 -- 0.088)
541-
5: Doubling/halving time (days) 17 (7.9 -- 260)
555+
3: Effective reproduction no. 1.6 (1.2 -- 2.3)
556+
4: Rate of growth 0.042 (0.0063 -- 0.083)
557+
5: Doubling/halving time (days) 17 (8.4 -- 110)
542558
```
543559

544-
The effective reproduction number $R_t$ estimate (on the last date of the data) is 1.6 (1.1 -- 2.4). The exponential growth rate of case numbers is 0.041 (0.0027 -- 0.088).
560+
The effective reproduction number $R_t$ estimate (on the last date of the data) is 1.6 (1.2 -- 2.3). The exponential growth rate of case numbers is 0.042 (0.0063 -- 0.083).
545561

546562
Visualize the estimates:
547563

delays-functions.md

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ epiparameter::generate(covid_serialint, times = 10)
167167
```
168168

169169
``` output
170-
[1] 3.270725 1.934659 3.429970 4.610215 1.973068 1.984880 6.728371
171-
[8] 2.991406 11.102558 9.452121
170+
[1] 5.703076 4.331661 4.620432 2.113233 1.803581 4.448651 7.457367 3.663820
171+
[9] 4.105711 2.722164
172172
```
173173

174174
::::::::: instructor
@@ -762,27 +762,7 @@ epinow_estimates_cgi <- EpiNow2::epinow(
762762
generation_time = EpiNow2::generation_time_opts(covid_serial_interval),
763763
delays = EpiNow2::delay_opts(covid_incubation_time)
764764
)
765-
```
766-
767-
``` output
768-
WARN [2025-10-10 18:10:57] epinow: There were 336 transitions after warmup that exceeded the maximum treedepth. Increase max_treedepth above 12. See
769-
https://mc-stan.org/misc/warnings.html#maximum-treedepth-exceeded -
770-
WARN [2025-10-10 18:10:57] epinow: There were 1 chains where the estimated Bayesian Fraction of Missing Information was low. See
771-
https://mc-stan.org/misc/warnings.html#bfmi-low -
772-
WARN [2025-10-10 18:10:57] epinow: Examine the pairs() plot to diagnose sampling problems
773-
-
774-
WARN [2025-10-10 18:10:58] epinow: The largest R-hat is NA, indicating chains have not mixed.
775-
Running the chains for more iterations may help. See
776-
https://mc-stan.org/misc/warnings.html#r-hat -
777-
WARN [2025-10-10 18:10:59] epinow: Bulk Effective Samples Size (ESS) is too low, indicating posterior means and medians may be unreliable.
778-
Running the chains for more iterations may help. See
779-
https://mc-stan.org/misc/warnings.html#bulk-ess -
780-
WARN [2025-10-10 18:11:00] epinow: Tail Effective Samples Size (ESS) is too low, indicating posterior variances and tail quantiles may be unreliable.
781-
Running the chains for more iterations may help. See
782-
https://mc-stan.org/misc/warnings.html#tail-ess -
783-
```
784765

785-
``` r
786766
base::plot(epinow_estimates_cgi)
787767
```
788768

@@ -934,10 +914,10 @@ epinow_estimates_egi <- EpiNow2::epinow(
934914
```
935915

936916
``` output
937-
WARN [2025-10-10 18:11:52] epinow: There were 3 divergent transitions after warmup. See
917+
WARN [2025-10-13 17:28:16] epinow: There were 4 divergent transitions after warmup. See
938918
https://mc-stan.org/misc/warnings.html#divergent-transitions-after-warmup
939919
to find out why this is a problem and how to eliminate them. -
940-
WARN [2025-10-10 18:11:52] epinow: Examine the pairs() plot to diagnose sampling problems
920+
WARN [2025-10-13 17:28:16] epinow: Examine the pairs() plot to diagnose sampling problems
941921
-
942922
```
943923

-17 Bytes
Loading
-68 Bytes
Loading
820 Bytes
Loading
-4.97 KB
Binary file not shown.
-49 KB
Binary file not shown.
-691 Bytes
Loading
-29.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)