Skip to content

epi_week

Syntax

epi_week()

Description

Returns the epidemiological week of the year, with possible values of 1-53.

An epidemiological week, commonly referred to as an epi week or a CDC week, is simply a standardized method of counting weeks to allow for the comparison of data year after year.

By definition, the first epi week of the year ends on the first Saturday of January that falls at least four days into the month. Each epi week begins on a Sunday and ends on a Saturday.

Note

Most years consist only of 52 epi weeks.

Examples

If the current simulation day is Friday January 1st, 2021, then

x = epi_week()

assigns 53 to some numeric variable x, as it is still the last epidemiological week of the epidemiological year 2020.

See Also