Skip to content

Commit af3ba9b

Browse files
committed
differences for PR #187
1 parent 9c45373 commit af3ba9b

25 files changed

+109
-6336
lines changed

config.yaml

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

create-forecast.md

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -201,13 +201,13 @@ base::summary(estimates)
201201
```
202202

203203
``` output
204-
measure estimate
205-
<char> <char>
206-
1: New infections per day 20091 (13574 -- 30897)
207-
2: Expected change in reports Likely decreasing
208-
3: Effective reproduction no. 0.97 (0.77 -- 1.2)
209-
4: Rate of growth -0.012 (-0.09 -- 0.071)
210-
5: Doubling/halving time (days) -58 (9.7 -- -7.7)
204+
measure estimate
205+
<char> <char>
206+
1: New infections per day 20164 (13954 -- 30149)
207+
2: Expected change in reports Stable
208+
3: Effective reproduction no. 0.97 (0.79 -- 1.2)
209+
4: Rate of growth -0.0099 (-0.086 -- 0.061)
210+
5: Doubling/halving time (days) -70 (11 -- -8)
211211
```
212212

213213

@@ -291,6 +291,12 @@ estimate_cases_to_deaths <- EpiNow2::estimate_secondary(
291291
)
292292
```
293293

294+
``` output
295+
WARN [2025-09-24 14:04:18] 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+
294300

295301
::::::::::::::::::::::::::::::::::::: callout
296302

@@ -515,12 +521,12 @@ ebola_estimates <- EpiNow2::epinow(
515521
```
516522

517523
``` output
518-
WARN [2025-08-26 01:46:34] epinow: There were 6 divergent transitions after warmup. See
524+
WARN [2025-09-24 14:05:08] epinow: There were 5 divergent transitions after warmup. See
519525
https://mc-stan.org/misc/warnings.html#divergent-transitions-after-warmup
520526
to find out why this is a problem and how to eliminate them. -
521-
WARN [2025-08-26 01:46:34] epinow: Examine the pairs() plot to diagnose sampling problems
527+
WARN [2025-09-24 14:05:08] epinow: Examine the pairs() plot to diagnose sampling problems
522528
-
523-
WARN [2025-08-26 01:46:38] epinow: Tail Effective Samples Size (ESS) is too low, indicating posterior variances and tail quantiles may be unreliable.
529+
WARN [2025-09-24 14:05:12] epinow: Tail Effective Samples Size (ESS) is too low, indicating posterior variances and tail quantiles may be unreliable.
524530
Running the chains for more iterations may help. See
525531
https://mc-stan.org/misc/warnings.html#tail-ess -
526532
```
@@ -530,16 +536,16 @@ summary(ebola_estimates)
530536
```
531537

532538
``` output
533-
measure estimate
534-
<char> <char>
535-
1: New infections per day 92 (49 -- 185)
536-
2: Expected change in reports Increasing
537-
3: Effective reproduction no. 1.6 (1.2 -- 2.4)
538-
4: Rate of growth 0.04 (0.0038 -- 0.083)
539-
5: Doubling/halving time (days) 17 (8.3 -- 180)
539+
measure estimate
540+
<char> <char>
541+
1: New infections per day 92 (47 -- 186)
542+
2: Expected change in reports Increasing
543+
3: Effective reproduction no. 1.6 (1.1 -- 2.4)
544+
4: Rate of growth 0.041 (0.0019 -- 0.086)
545+
5: Doubling/halving time (days) 17 (8 -- 360)
540546
```
541547

542-
The effective reproduction number $R_t$ estimate (on the last date of the data) is 1.6 (1.2 -- 2.4). The exponential growth rate of case numbers is 0.04 (0.0038 -- 0.083).
548+
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.0019 -- 0.086).
543549

544550
Visualize the estimates:
545551

delays-functions.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ generate(covid_serialint, times = 10)
161161
```
162162

163163
``` output
164-
[1] 3.133504 6.369584 2.651628 10.017361 1.305227 2.536725 2.996175
165-
[8] 7.880128 6.562764 5.961404
164+
[1] 6.5005838 3.2863986 9.4190041 9.6313865 3.9843247 5.4318498 4.7479639
165+
[8] 0.9639247 1.8253098 8.0700738
166166
```
167167

168168
::::::::: instructor
@@ -588,12 +588,10 @@ epinow_estimates_cgi <- epinow(
588588
```
589589

590590
``` output
591-
WARN [2025-08-26 01:35:59] epinow: There were 1 divergent transitions after warmup. See
591+
WARN [2025-09-24 13:54:40] epinow: There were 1 divergent transitions after warmup. See
592592
https://mc-stan.org/misc/warnings.html#divergent-transitions-after-warmup
593593
to find out why this is a problem and how to eliminate them. -
594-
WARN [2025-08-26 01:35:59] epinow: There were 375 transitions after warmup that exceeded the maximum treedepth. Increase max_treedepth above 12. See
595-
https://mc-stan.org/misc/warnings.html#maximum-treedepth-exceeded -
596-
WARN [2025-08-26 01:35:59] epinow: Examine the pairs() plot to diagnose sampling problems
594+
WARN [2025-09-24 13:54:40] epinow: Examine the pairs() plot to diagnose sampling problems
597595
-
598596
```
599597

@@ -740,7 +738,17 @@ epinow_estimates_egi <- epinow(
740738
generation_time = generation_time_opts(serial_interval_ebola),
741739
delays = delay_opts(incubation_period_ebola)
742740
)
741+
```
742+
743+
``` output
744+
WARN [2025-09-24 13:55:32] epinow: There were 1 divergent transitions after warmup. See
745+
https://mc-stan.org/misc/warnings.html#divergent-transitions-after-warmup
746+
to find out why this is a problem and how to eliminate them. -
747+
WARN [2025-09-24 13:55:32] epinow: Examine the pairs() plot to diagnose sampling problems
748+
-
749+
```
743750

751+
``` r
744752
plot(epinow_estimates_egi)
745753
```
746754

0 Bytes
Loading
-19 Bytes
Loading
217 Bytes
Loading
-268 Bytes
Loading
445 Bytes
Loading
350 Bytes
Loading
750 Bytes
Loading

0 commit comments

Comments
 (0)