Skip to content

Commit d242eef

Browse files
committed
differences for PR #217
1 parent 3a7ad83 commit d242eef

22 files changed

+137
-6778
lines changed

config.yaml

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

create-forecast.md

Lines changed: 15 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -199,38 +199,25 @@ estimates <- EpiNow2::epinow(
199199
```
200200

201201
``` output
202-
WARN [2025-10-17 16:09:53] epinow: There were 15 divergent transitions after warmup. See
202+
WARN [2025-11-04 02:14:03] epinow: There were 4 divergent transitions after warmup. See
203203
https://mc-stan.org/misc/warnings.html#divergent-transitions-after-warmup
204204
to find out why this is a problem and how to eliminate them. -
205-
WARN [2025-10-17 16:09:53] epinow: There were 496 transitions after warmup that exceeded the maximum treedepth. Increase max_treedepth above 12. See
206-
https://mc-stan.org/misc/warnings.html#maximum-treedepth-exceeded -
207-
WARN [2025-10-17 16:09:53] epinow: There were 1 chains where the estimated Bayesian Fraction of Missing Information was low. See
208-
https://mc-stan.org/misc/warnings.html#bfmi-low -
209-
WARN [2025-10-17 16:09:53] epinow: Examine the pairs() plot to diagnose sampling problems
205+
WARN [2025-11-04 02:14:03] epinow: Examine the pairs() plot to diagnose sampling problems
210206
-
211-
WARN [2025-10-17 16:09:54] epinow: The largest R-hat is NA, indicating chains have not mixed.
212-
Running the chains for more iterations may help. See
213-
https://mc-stan.org/misc/warnings.html#r-hat -
214-
WARN [2025-10-17 16:09:55] epinow: Bulk Effective Samples Size (ESS) is too low, indicating posterior means and medians may be unreliable.
215-
Running the chains for more iterations may help. See
216-
https://mc-stan.org/misc/warnings.html#bulk-ess -
217-
WARN [2025-10-17 16:09:57] epinow: Tail Effective Samples Size (ESS) is too low, indicating posterior variances and tail quantiles may be unreliable.
218-
Running the chains for more iterations may help. See
219-
https://mc-stan.org/misc/warnings.html#tail-ess -
220207
```
221208

222209
``` r
223210
base::summary(estimates)
224211
```
225212

226213
``` output
227-
measure estimate
228-
<char> <char>
229-
1: New infections per day 18224 (0 -- 28832)
230-
2: Expected change in reports Likely decreasing
231-
3: Effective reproduction no. 0.92 (0.046 -- 1.2)
232-
4: Rate of growth -0.029 (-0.35 -- 0.054)
233-
5: Doubling/halving time (days) -24 (13 -- -2)
214+
measure estimate
215+
<char> <char>
216+
1: New infections per day 20235 (13425 -- 29972)
217+
2: Expected change in reports Stable
218+
3: Effective reproduction no. 0.97 (0.77 -- 1.2)
219+
4: Rate of growth -0.011 (-0.092 -- 0.068)
220+
5: Doubling/halving time (days) -65 (10 -- -7.5)
234221
```
235222

236223

@@ -315,10 +302,7 @@ estimate_cases_to_deaths <- EpiNow2::estimate_secondary(
315302
```
316303

317304
``` output
318-
WARN [2025-10-17 16:10:02] estimate_secondary (chain: 1): Bulk Effective Samples Size (ESS) is too low, indicating posterior means and medians may be unreliable.
319-
Running the chains for more iterations may help. See
320-
https://mc-stan.org/misc/warnings.html#bulk-ess -
321-
WARN [2025-10-17 16:10:02] estimate_secondary (chain: 1): Tail Effective Samples Size (ESS) is too low, indicating posterior variances and tail quantiles may be unreliable.
305+
WARN [2025-11-04 02:14:10] estimate_secondary (chain: 1): Tail Effective Samples Size (ESS) is too low, indicating posterior variances and tail quantiles may be unreliable.
322306
Running the chains for more iterations may help. See
323307
https://mc-stan.org/misc/warnings.html#tail-ess -
324308
```
@@ -553,31 +537,21 @@ ebola_estimates <- EpiNow2::epinow(
553537
# horizon needs to be 14 days to create two week forecast (default is 7 days)
554538
forecast = EpiNow2::forecast_opts(horizon = 14)
555539
)
556-
```
557540

558-
``` output
559-
WARN [2025-10-17 16:10:58] epinow: There were 23 divergent transitions after warmup. See
560-
https://mc-stan.org/misc/warnings.html#divergent-transitions-after-warmup
561-
to find out why this is a problem and how to eliminate them. -
562-
WARN [2025-10-17 16:10:58] epinow: Examine the pairs() plot to diagnose sampling problems
563-
-
564-
```
565-
566-
``` r
567541
summary(ebola_estimates)
568542
```
569543

570544
``` output
571545
measure estimate
572546
<char> <char>
573-
1: New infections per day 93 (49 -- 199)
547+
1: New infections per day 92 (48 -- 193)
574548
2: Expected change in reports Increasing
575-
3: Effective reproduction no. 1.7 (1.2 -- 2.4)
576-
4: Rate of growth 0.042 (0.0033 -- 0.086)
577-
5: Doubling/halving time (days) 16 (8 -- 210)
549+
3: Effective reproduction no. 1.6 (1.2 -- 2.4)
550+
4: Rate of growth 0.041 (0.0025 -- 0.088)
551+
5: Doubling/halving time (days) 17 (7.9 -- 270)
578552
```
579553

580-
The effective reproduction number $R_t$ estimate (on the last date of the data) is 1.7 (1.2 -- 2.4). The exponential growth rate of case numbers is 0.042 (0.0033 -- 0.086).
554+
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.041 (0.0025 -- 0.088).
581555

582556
Visualize the estimates:
583557

delays-functions.md

Lines changed: 2 additions & 2 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] 5.611452 5.189468 7.284840 4.451059 9.886059 5.290563 1.762559 1.771989
171-
[9] 5.081965 7.320946
170+
[1] 2.768040 7.552861 10.198738 4.275607 5.760451 4.899755 3.444418
171+
[8] 2.738078 4.003060 5.263222
172172
```
173173

174174
::::::::: instructor
34 Bytes
Loading
97 Bytes
Loading
308 Bytes
Loading
213 Bytes
Loading
-1.46 KB
Loading
97 Bytes
Loading
-5.27 KB
Loading

0 commit comments

Comments
 (0)