etheleon / dengue

For everything related to NEA dengue
0 stars 0 forks source link

EPIWEEK does not equal ISOWEEK #32

Open etheleon opened 2 weeks ago

etheleon commented 2 weeks ago

As discussed, we are using CDC WEEK which starts on a Sunday. No standard func in SQL to calculate that closest is ISOWEEK See comment in https://github.com/tidyverse/lubridate/issues/564

Epidemiological weeks begin on Sunday in the U.S. and are used by the CDC and various state agencies. But in most of the rest of the world, epi weeks begin on Monday and are therefore equivalent to iso weeks. The World Health Organization and pretty much every other international organization, and most countries other than the US (as far as I know) use this ISO standard for epidemiological weeks.

> epiweek("1987-12-28")
[1] 52
> isoweek("1987-12-28")
[1] 53