tests/testthat/_snaps/simulate-infections.md

simulate_infections works as expected with standard parameters

          variable       date     value
            <char>     <Date>     <num>
 1:     infections 2023-01-01 120.00000
 2:     infections 2023-01-02 144.00000
 3:     infections 2023-01-03 172.80000
 4:     infections 2023-01-04 207.36000
 5:     infections 2023-01-05 248.83200
 6:     infections 2023-01-06 298.59840
 7:     infections 2023-01-07 358.31808
 8:     infections 2023-01-08 286.65446
 9:     infections 2023-01-09 229.32357
10:     infections 2023-01-10 183.45886
11:     infections 2023-01-11 146.76709
12:     infections 2023-01-12 117.41367
13:     infections 2023-01-13  93.93093
14:     infections 2023-01-14  75.14475
15: reported_cases 2023-01-01 125.00000
16: reported_cases 2023-01-02 135.00000
17: reported_cases 2023-01-03 195.00000
18: reported_cases 2023-01-04 224.00000
19: reported_cases 2023-01-05 253.00000
20: reported_cases 2023-01-06 328.00000
21: reported_cases 2023-01-07 364.00000
22: reported_cases 2023-01-08 278.00000
23: reported_cases 2023-01-09 206.00000
24: reported_cases 2023-01-10 169.00000
25: reported_cases 2023-01-11 144.00000
26: reported_cases 2023-01-12 109.00000
27: reported_cases 2023-01-13  80.00000
28: reported_cases 2023-01-14  95.00000
          variable       date     value

simulate_infections works as expected with additional parameters

          variable       date     value
            <char>     <Date>     <num>
 1:     infections 2023-01-01 101.60082
 2:     infections 2023-01-02 107.29011
 3:     infections 2023-01-03 113.03527
 4:     infections 2023-01-04 119.01464
 5:     infections 2023-01-05 125.28049
 6:     infections 2023-01-06 131.63823
 7:     infections 2023-01-07 138.33602
 8:     infections 2023-01-08  96.91916
 9:     infections 2023-01-09  94.05215
10:     infections 2023-01-10  89.94060
11:     infections 2023-01-11  85.64594
12:     infections 2023-01-12  81.40206
13:     infections 2023-01-13  77.28891
14:     infections 2023-01-14  73.33458
15: reported_cases 2023-01-01  75.00000
16: reported_cases 2023-01-02  67.00000
17: reported_cases 2023-01-03  73.00000
18: reported_cases 2023-01-04  63.00000
19: reported_cases 2023-01-05 276.00000
20: reported_cases 2023-01-06 121.00000
21: reported_cases 2023-01-07 215.00000
22: reported_cases 2023-01-08  84.00000
23: reported_cases 2023-01-09 116.00000
24: reported_cases 2023-01-10 132.00000
25: reported_cases 2023-01-11  91.00000
26: reported_cases 2023-01-12  77.00000
27: reported_cases 2023-01-13 120.00000
28: reported_cases 2023-01-14  41.00000
          variable       date     value


Try the EpiNow2 package in your browser

Any scripts or data that you put into this service are public.

EpiNow2 documentation built on Oct. 31, 2024, 5:09 p.m.