options(width = 100)
source('./predict.R')
## [1] "2021-02-02"
##                              country cum_confirm cum_heal cum_dead inc_r d_rate d_pm
## 1                      United States    27025649 16750130   457856  0.46   1.69 1383
## 2                              India    10778206 10461706   154635  0.10   1.43  112
## 3                             Brazil     9286256  8160929   226383  0.61   2.44 1065
## 4                             Russia     3884730  3340545    74158  0.43   1.91  508
## 5                     United Kingdom     3852623  1787706   108013  0.44   2.80 1591
## 6                             France     3224798   226896    77238  0.73   2.40 1183
## 7                              Spain     2881793   196958    59805  1.02   2.08 1279
## 8                              Italy     2570608  2043499    89344  0.38   3.48 1478
## 9                             Turkey     2492977  2379070    26237  0.31   1.05  311
## 10                           Germany     2241254  1953484    59395  0.33   2.65  709
## 11                          Colombia     2114597  1971342    54576  0.48   2.58 1073
## 12                         Argentina     1943548  1738768    48426  0.50   2.49 1071
## 13                            Mexico     1869708  1425748   159100  0.29   8.51 1234
## 14                            Poland     1520215  1281396    37476  0.29   2.47  990
## 15                      South Africa     1458958  1318504    44946  0.18   3.08  758
## 16                              Iran     1431416  1223197    58110  0.48   4.06  692
## 17                           Ukraine     1223879  1035372    22924  0.20   1.87  524
## 18                              Peru     1142716  1057145    41181  0.00   3.60 1249
## 19                         Indonesia     1099687   896530    30581  0.95   2.78  112
## 20                    Czech Republic      994514   885279    16545  0.73   1.66 1545
## 21                       Netherlands      985224      322    14108  0.36   1.43  823
## 22                            Canada      786420   716646    20213  0.56   2.57  536
## 23                             Chile      734035   690653    18559  0.43   2.53  971
## 24                           Romania      732732   678473    18513  0.37   2.53  962
## 25                          Portugal      731861   551956    13017  0.76   1.78 1277
## 26                           Belgium      711417    49061    21124  0.18   2.97 1823
## 27                            Israel      659978   582429     4887  1.19   0.74  565
## 28                              Iraq      621755   594594    13068  0.18   2.10  325
## 29                            Sweden      576606     4971    11815  1.70   2.05 1170
## 30                          Pakistan      547648   502537    11746  0.22   2.14   53
## 31                        Bangladesh      536107   480728     8149  0.10   1.52   49
## 32                       Philippines      528853   487611    10874  0.30   2.06   99
## 33                       Switzerland      526728   317600     9489  0.31   1.80 1096
## 34                           Morocco      472273   450847     8309  0.18   1.76  225
## 35                           Austria      416763   395316     7847  0.30   1.88  871
## 36                            Serbia      398905    31536     4056  0.48   1.02  464
## 37                             Japan      394087   339377     5952  0.59   1.51   47
## 38                           Hungary      369288   268803    12656  0.16   3.43 1310
## 39                      Saudi Arabia      368639   360110     6383  0.08   1.73  183
## 40                            Jordan      329194   316442     4334  0.35   1.32  425
## 41                            Panama      321103   278442     5296  0.00   1.65 1227
## 42              United Arab Emirates      309649   285201      866  1.08   0.28   88
## 43                           Lebanon      305842   186052     3226  0.91   1.05  473
## 44                             Nepal      271289   266859     2030  0.06   0.75   70
## 45                           Georgia      259209   250289     3208  0.33   1.24  804
## 46                          Slovakia      252094   222642     4784  0.69   1.90  876
## 47                           Ecuador      251279   209814    14915  0.12   5.94  845
## 48                           Belarus      249994   237178     1737  0.28   0.69  184
## 49                           Croatia      232907   225300     5071  0.17   2.18 1235
## 50                        Azerbaijan      230455   223807     3141  0.07   1.36  310
## 51                          Malaysia      222628   173990      791  1.58   0.36   24
## 52                          Bulgaria      220547   190484     9178  0.44   4.16 1321
## 53                           Bolivia      218299   160326    10439  0.68   4.78  894
## 54                Dominican Republic      215920   159606     2704  0.39   1.25  249
## 55                           Tunisia      211412   165067     6893  0.65   3.26  583
## 56                           Denmark      200041   189553     2161  0.20   1.08  373
## 57                           Ireland      198424    23364     3418  0.44   1.72  692
## 58                        Costa Rica      195009   154227     2641  0.23   1.35  518
## 59                        Kazakhstan      189131   169963     2476  0.62   1.31  132
## 60                         Lithuania      183444   131151     2847  0.30   1.55 1046
## 61                          Slovenia      168486   147687     3541  1.00   2.10 1703
## 62                           Armenia      167231   158335     3089  0.09   1.85 1042
## 63                             Egypt      167013   130514     9407  0.31   5.63   92
## 64                            Kuwait      166654   158986      960  0.49   0.58  225
## 65                       Puerto Rico      164122    78813     1846  0.40   1.12  645
## 66                           Moldova      160725   150720     3462  0.40   2.15  858
## 67                         Guatemala      160299   146019     5709  0.42   3.56  319
## 68             Palestinian Territory      159956   150123     1849  0.32   1.16   NA
## 69                            Greece      158716   138748     5851  0.78   3.69  561
## 70                             Qatar      152095   146111      249  0.25   0.16   86
## 71                          Honduras      148951    60979     3614  0.75   2.43  365
## 72                           Myanmar      140354   125324     3138  0.15   2.24   58
## 73                          Ethiopia      138861   123806     2116  0.34   1.52   18
## 74                              Oman      134685   127054     1532  0.12   1.14  300
## 75                          Paraguay      134482   110041     2750  0.52   2.04  386
## 76                           Nigeria      133552   107551     1613  1.24   1.21    8
## 77                         Venezuela      127346   119291     1196  0.33   0.94   42
## 78            Bosnia and Herzegovina      122461    95569     4737  0.21   3.87 1444
## 79                             Libya      120434   100593     1896  0.86   1.57  276
## 80                           Algeria      107841    73732     2898  0.24   2.69   66
## 81                           Bahrain      104239    99285      376  0.63   0.36  221
## 82                             China      101092    93894     4828  0.12   4.78    3
## 83                             Kenya      101009    83990     1766  0.15   1.75   33
## 84      Republika Severna Makedonija       93160    82520     2873  0.44   3.08   NA
## 85                        Kyrgyzstan       84646    81102     1414  0.07   1.67  217
## 86                           Albania       79934    48377     1398  1.19   1.75  486
## 87                       South Korea       79311    69299     1441  1.02   1.82   28
## 88                        Uzbekistan       78801    77286      621  0.06   0.79   19
## 89                             Ghana       67782    61843      424  1.15   0.63   14
## 90                            Latvia       67427    55708     1219  1.16   1.81  646
## 91                         Sri Lanka       65698    59043      330  1.10   0.50   15
## 92                            Norway       63553    57004      568  0.69   0.89  105
## 93                        Montenegro       62476    54529      818  0.81   1.31 1302
## 94                         Singapore       59584    59301       29  0.03   0.05    5
## 95                            Zambia       56233    49696      794  2.16   1.41   43
## 96                       El Salvador       55195    49037     1638  0.00   2.97  253
## 97                       Afghanistan       55174    47798     2406  0.10   4.36   62
## 98                        Luxembourg       50923    48006      586  0.37   1.15  936
## 99                           Finland       45784    31000      684  0.66   1.49  123
## 100                          Estonia       44978    34927      424  0.90   0.94  320
## 101                          Uruguay       42667    36178      453  1.28   1.06  130
## 102                       Mozambique       40260    25010      403  2.03   1.00   13
## 103                           Uganda       39651    14229      325  0.11   0.82    7
## 104                          Namibia       34270    32739      355  0.30   1.04  140
## 105                         Zimbabwe       33814    26794     1254  0.79   3.71   84
## 106                           Cyprus       31124     2057      202  0.41   0.65  167
## 107                         Cameroon       30313    28045      474  2.35   1.56   18
## 108                        Australia       28824    26070      909  0.02   3.15   36
## 109                             Cuba       28636    22921      218  3.78   0.76   19
## 110                    Côte d'Ivoire       28607    26724      158  0.46   0.55    6
## 111                            Sudan       27402    21614     1829  0.47   6.67   42
## 112                          Senegal       27080    22363      641  0.57   2.37   38
## 113                           Malawi       24903     9518      726  2.21   2.92   38
## 114 Democratic Republic of the Congo       23043    15050      675  0.88   2.93   NA
## 115                         Botswana       22738    18468      148  0.00   0.65   63
## 116                         Thailand       20454    13217       79  4.26   0.39    1
## 117                           Angola       19900    18232      468  0.36   2.35   14
## 118                       Madagascar       19065    18215      281  0.00   1.47   10
## 119                            Malta       18168    15233      270  0.78   1.49  611
## 120                 French Polynesia       18101     4842      132  0.00   0.73  470
## 121                       Mauritania       16689    15799      423  0.16   2.53   91
## 122                    French Guiana       16185     9995       77  0.32   0.48  258
## 123                         Maldives       16155    14263       52  0.62   0.32   96
## 124                          Jamaica       15973    12108      353  1.24   2.21  119
## 125                        Swaziland       15878    10839      583  0.47   3.67   NA
## 126                           Rwanda       15688    10745      205  1.48   1.31   16
## 127                           Guinea       14555    14228       83  0.00   0.57    6
## 128                       Cape Verde       14152    13335      134  0.38   0.95   NA
## 129                            Syria       14142     7725      929  0.33   6.57   53
## 130                       Tajikistan       13308    13218       90  0.00   0.68    9
## 131                           Belize       11957    11378      303  0.41   2.53  762
## 132                            Haiti       11672     9114      245  0.71   2.10   21
## 133                            Gabon       10952    10419       68  1.90   0.62   31
## 134                     Burkina Faso       10904     9585      126  2.08   1.16    6
## 135                          Réunion       10194     9528       46  1.98   0.45   51
## 136                          Andorra       10017     9252      102  0.45   1.02 1320

## [1] "Pakistan leading 1 cum_confirm == 0 trimed"

## [1] "Provinces added more than 0 cases in last 1-day:"
##          time country     province cum_confirm cum_heal cum_dead added
## 1  2021-02-02   China    Hong Kong       10511     9549      184    25
## 2  2021-02-02   China        Jilin         563      222        3     8
## 3  2021-02-02   China Heilongjiang        1597     1060       13     6
## 4  2021-02-02   China     Shanghai        1709     1572        7     4
## 5  2021-02-02   China       Taiwan         915      832        8     3
## 6  2021-02-02   China    Guangdong        2129     2077        8     2
## 7  2021-02-02   China      Sichuan         873      857        3     2
## 8  2021-02-02   China        Hebei        1314     1015        7     1
## 9  2021-02-02   China      Jiangsu         698      686        0     1
## 10 2021-02-02   China      Shaanxi         540      512        3     1