options(width = 100)
source('./predict.R')
## [1] "2020-11-04"
##                              country cum_confirm cum_heal cum_dead inc_r d_rate d_pm
## 1                              India     8329731  7669487   123730  0.20   1.49   90
## 2                      United States     9694176  6237271   238656  0.51   2.46  721
## 3                             Brazil     5567126  5028216   160548  0.02   2.88  755
## 4                             Russia     1693454  1266931    29217  1.18   1.73  200
## 5                          Argentina     1195276  1009278    32052  1.03   2.68  709
## 6                           Colombia     1099392   993877    31847  0.00   2.90  626
## 7                               Peru      908902   832929    34623  0.00   3.81 1050
## 8                             Mexico      938405   693227    92593  0.56   9.87  718
## 9                       South Africa      728836   659259    19539  0.00   2.68  329
## 10                              Iran      646164   500400    36579  1.33   5.66  436
## 11                             Chile      514202   490820    14319  0.00   2.78  749
## 12                              Iraq      485870   417235    11128  0.74   2.29  277
## 13                           Germany      583876   381340    10931  2.73   1.87  130
## 14                         Indonesia      421731   353282    14259  0.80   3.38   52
## 15                       Philippines      388137   349091     7367  0.25   1.90   67
## 16                      Saudi Arabia      348936   335594     5471  0.12   1.57  157
## 17                        Bangladesh      414164   331697     6004  0.37   1.45   36
## 18                            Turkey      382118   328824    10481  0.00   2.74  124
## 19                          Pakistan      337573   316060     6867  0.39   2.03   31
## 20                            Israel      316792   304418     2592  0.08   0.82  299
## 21                             Italy      759829   302275    39412  0.00   5.19  652
## 22                            Canada      244935   203509    10279  1.06   4.20  272
## 23                             Spain     1331756   196958    36495  0.00   2.74  781
## 24                           Morocco      229565   189909     3900  0.00   1.70  106
## 25                           Romania      267088   186260     7419  3.35   2.78  386
## 26                    Czech Republic      362985   185180     3913  1.48   1.08  365
## 27                           Ukraine      420617   176404     7731  2.32   1.84  177
## 28                            Poland      439536   168960     6475  5.95   1.47  171
## 29                           Ecuador      170110   149048    12698  0.00   7.46  720
## 30                             Nepal      182923   144978     1034  1.84   0.57   35
## 31              United Arab Emirates      137310   134983      505  0.85   0.37   51
## 32                             Qatar      133370   130414      232  0.17   0.17   81
## 33                            France     1502763   120714    38289  0.00   2.55  587
## 34                            Kuwait      128843   119742      794  0.60   0.62  186
## 35                            Panama      135592   113379     2731  0.50   2.01  633
## 36                           Bolivia      141936   112526     8751  0.05   6.17  750
## 37                              Oman      116847   106903     1275  0.27   1.09  250
## 38                        Kazakhstan      113741   106893     1857  0.38   1.63   99
## 39                Dominican Republic      127848   105982     2252  0.00   1.76  208
## 40                             Egypt      108122    99765     6305  0.00   5.83   62
## 41                         Guatemala      108483    98658     3748  0.00   3.45  209
## 42                             Japan      104035    94295     1799  0.60   1.73   14
## 43                           Belarus      102313    88701      995  0.97   0.97  105
## 44                         Venezuela       93100    87941      810  0.43   0.87   28
## 45                       Switzerland      192376    87100     2500  5.53   1.30  289
## 46                             China       92077    86766     4747  0.03   5.16    3
## 47                          Portugal      149443    86589     2635  0.00   1.76  258
## 48                           Bahrain       82363    79680      326  0.00   0.40  192
## 49                           Austria      125099    77036     1227  5.84   0.98  136
## 50                        Costa Rica      112120    68604     1419  0.00   1.27  279
## 51                        Uzbekistan       67698    64885      575  0.21   0.85   17
## 52                           Nigeria       63173    59634     1151  0.22   1.82    6
## 53                           Armenia       97150    58811     1448  2.50   1.49  489
## 54                         Singapore       58036    57937       28  0.01   0.05    5
## 55                           Moldova       77487    57402     1838  0.00   2.37  456
## 56                          Ethiopia       97502    55254     1494  0.00   1.53   13
## 57                        Kyrgyzstan       60774    51815     1163  1.49   1.91  178
## 58             Palestinian Territory       56090    48224      504  1.23   0.90   NA
## 59                             Ghana       48643    47446      320  0.92   0.66   10
## 60                        Azerbaijan       59509    45697      780  2.11   1.31   77
## 61                          Paraguay       64628    44523     1441  0.74   2.23  202
## 62                           Lebanon       85209    43885      667  0.00   0.78   98
## 63                          Honduras       98688    41848     2706  0.29   2.74  273
## 64                           Croatia       56567    41070      654  4.59   1.16  159
## 65                           Myanmar       56940    40778     1330  2.04   2.34   24
## 66                           Algeria       58979    40577     1980  0.00   3.36   45
## 67                             Kenya       57093    37846     1039  0.00   1.82   19
## 68                             Libya       64587    37610      900  1.41   1.39  131
## 69                           Denmark       50106    36617      728  0.00   1.45  126
## 70                       Afghanistan       41814    34362     1548  0.21   3.70   40
## 71                            Serbia       51083    31536      844  0.00   1.65   97
## 72                           Georgia       46817    31170      381  5.15   0.81   96
## 73                       El Salvador       34015    29788      992  0.00   2.92  153
## 74            Bosnia and Herzegovina       55598    29389     1358  3.30   2.44  414
## 75                           Belgium      453310    26661    12126  1.33   2.67 1046
## 76                         Australia       27620    25394      907  0.04   3.28   36
## 77                          Malaysia       35425    24815      271  3.00   0.76    8
## 78                       South Korea       26925    24616      474  0.44   1.76    9
## 79                           Ireland       63048    23364     1922  0.00   3.05  389
## 80      Republika Severna Makedonija       33908    21665     1049  0.00   3.09   NA
## 81                          Bulgaria       60537    21544     1412  0.00   2.33  203
## 82                           Hungary       90988    21232     2063  4.86   2.27  214
## 83                          Cameroon       22103    21151      429  0.00   1.94   16
## 84                     Côte d'Ivoire       20765    20427      126  0.00   0.61    5
## 85                        Madagascar       17111    16409      244  0.00   1.43    9
## 86                            Zambia       16698    15819      349  0.22   2.09   19
## 87                          Slovenia       39408    15550      441  5.42   1.12  212
## 88                          Slovakia       66772    15474      261  5.06   0.39   48
## 89                           Senegal       15650    15245      326  0.06   2.08   19
## 90                        Montenegro       19977    14635      322  3.99   1.61  513
## 91                           Finland       16930    12700      361  1.76   2.13   65
## 92                            Norway       21956    11863      282  1.54   1.28   52
## 93                           Albania       21904    11473      532  0.00   2.43  185
## 94                           Namibia       13030    11304      133  0.14   1.02   52
## 95                          Maldives       11796    10962       38  0.00   0.32   70
## 96                        Luxembourg       19634    10825      167  0.00   0.85  267
## 97  Democratic Republic of the Congo       11427    10783      315  0.28   2.76   NA
## 98                        Mozambique       13202    10695       95  0.00   0.72    3
## 99                            Guinea       12260    10648       73  0.38   0.60    6
## 100                       Tajikistan       11139    10389       83  0.00   0.75    9
## 101                    French Guiana       10577     9995       70  0.09   0.66  234
## 102                           Greece       44246     9989      655  0.00   1.48   63
## 103                           Jordan       86576     7993      967  0.00   1.12   95
## 104                           Uganda       13099     7612      115  0.00   0.88    3
## 105                            Sudan       13905     6764      837  0.28   6.02   19
## 106                        Sri Lanka       12018     5858       23  2.33   0.19    1
## 107                           Angola       11577     5230      291  0.00   2.51    9
## 108                        Lithuania       18092     5082      182  3.66   1.01   67
## 109                          Tunisia       64363     5032     1512  3.97   2.35  128
## 110                           Sweden      137730     4971     5997  2.38   4.35  594
## 111                      Puerto Rico       68943     2267      842  0.00   1.22  294
## 112                   United Kingdom     1073882     1918    47250  0.00   4.40  696
## 113                      Netherlands      383523      322     7682  2.03   2.00  448

## [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 2020-11-04   China       Shanghai        1208     1111        7     8
## 2 2020-11-04   China       Xinjiang         974      899        3     8
## 3 2020-11-04   China      Hong Kong        5348     5118      106     3
## 4 2020-11-04   China          Henan        1286     1258       22     2
## 5 2020-11-04   China         Fujian         443      413        1     2
## 6 2020-11-04   China        Beijing         945      929        9     1
## 7 2020-11-04   China         Taiwan         568      521        7     1
## 8 2020-11-04   China        Shaanxi         456      427        3     1
## 9 2020-11-04   China Inner Mongolia         298      270        1     1