Skip to contents

Returns the four windows the detection panels use, each set in days back from the reporting date. A detection falls in a window when its virus date lies between as_of - from and as_of - to, both ends included.

Usage

detection_default_windows()

Value

A tibble with one row per window and the columns window (character), from and to (integer days before the reporting date, with from at least to).

Details

The 6-month and 12-month windows each carry a reporting lag of about two months, so they run longer than their names suggest.

  • last_6 runs from 218 days before as_of to as_of.

  • preceding_6 runs from 402 days before as_of to 219 days before.

  • last_12 runs from 400 days before as_of to as_of.

  • preceding_12 runs from 766 days before as_of to 401 days before.

Examples

detection_default_windows()
#> # A tibble: 4 × 3
#>   window        from    to
#>   <chr>        <int> <int>
#> 1 last_6         218     0
#> 2 preceding_6    402   219
#> 3 last_12        400     0
#> 4 preceding_12   766   401