From 7f13c349f1d1463d2ca250ab07eece6f32be5e3f Mon Sep 17 00:00:00 2001 From: Marc Bevand Date: Tue, 8 Sep 2020 00:20:30 -0700 Subject: [PATCH] add test code --- calc_ifr.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/calc_ifr.py b/calc_ifr.py index 42f3b2b..12cf82a 100755 --- a/calc_ifr.py +++ b/calc_ifr.py @@ -90,6 +90,18 @@ for (bracket, deaths) in deaths_by_age.items(): ifrs[bracket] = ifr print('True IFR may be higher due to right-censoring and under-reporting of deaths') +# unused, test code +ifrs_test = { + (0,9): 0.01, + (10,19): 0.00, + (20,29): 0.01, + (30,39): 0.03, + (40,49): 0.11, + (50,59): 0.22, + (60,69): 0.71, + (70,199): 2.40, + } + # Now we apply the age-stratified IFR to a target country with a different # population pyramid. pyramid_usa = [