source('./predict.R')

## [1] "2020-08-27"
##                         country cum_confirm cum_heal cum_dead inc_r d_rate d_pm
## 1                         Italy      262540   206329    35458  0.52  13.51  586
## 2                United Kingdom      328846     1918    41465  0.32  12.61  611
## 3                        France      253587    85524    30544  2.19  12.04  468
## 4                       Belgium       83030    18331     9879  0.71  11.90  852
## 5                        Mexico      573888   396758    62076  0.93  10.82  481
## 6                   Netherlands       68114      322     6215  0.00   9.12  363
## 7                        Canada      126417   112455     9094  0.36   7.19  241
## 8                         Spain      426818   196958    28971  0.85   6.79  620
## 9                        Sweden       87072     4971     5817  0.00   6.68  576
## 10                        Sudan       13045     6594      823  0.55   6.31   19
## 11                      Ireland       28363    23364     1777  0.57   6.27  360
## 12                      Ecuador      110549    95097     6410  1.39   5.80  363
## 13                         Iran      367796   316638    21137  0.60   5.75  252
## 14                        Egypt       97825    68713     5317  0.21   5.44   52
## 15                        China       90292    84783     4722  0.03   5.23    3
## 16                  Switzerland       41006    34800     2003  0.89   4.88  231
## 17                         Peru      613378   421877    28124  0.99   4.59  853
## 18                    Indonesia      162884   118575     7064  1.70   4.34   26
## 19                      Bolivia      112094    50397     4726  0.99   4.22  405
## 20                      Romania       83150    36677     3459  1.84   4.16  180
## 21 Republika Severna Makedonija       13914    10507      578  0.83   4.15   NA
## 22                      Germany      239197   212984     9438  0.73   3.95  113
## 23                    Guatemala       70714    58783     2662  1.53   3.76  149
## 24                     Bulgaria       15751    10750      586  1.04   3.72   84
## 25                  Afghanistan       38129    29046     1401  0.04   3.67   36
## 26                      Denmark       16962    14974      623  0.34   3.67  108
## 27                      Algeria       42619    29886     1465  0.93   3.44   33
## 28                     Portugal       56274    41184     1807  0.00   3.21  177
## 29                     Colombia      572270   407121    18184  1.80   3.18  357
## 30                       Brazil     3722004  2908848   117756  1.30   3.16  554
## 31                       Poland       64689    44097     2010  1.39   3.11   53
## 32                         Iraq      215784   157215     6668  1.81   3.09  166
## 33       Bosnia and Herzegovina       18920    12480      582  1.67   3.08  177
## 34                     Honduras       56649     9169     1747  1.38   3.08  176
## 35                United States     6002092  3314664   183685  0.76   3.06  555
## 36                      Austria       26361    22317      733  1.26   2.78   81
## 37                      Moldova       34982    24156      967  1.82   2.76  240
## 38                  El Salvador       25284    13291      694  0.57   2.74  107
## 39                        Chile      402365   376268    10990  0.34   2.73  575
## 40                       Norway       10504     9150      264  0.48   2.51   49
## 41                       Zambia       11376    10693      282  0.81   2.48   15
## 42                   Kyrgyzstan       43459    37492     1057  0.23   2.43  162
## 43                       Turkey      262507   239797     6183  0.50   2.36   73
## 44                       Serbia       30974    29343      707  0.50   2.28   81
## 45                    Australia       25322    20366      572  0.47   2.26   22
## 46                 South Africa      615701   525242    13502  0.44   2.19  228
## 47                       Panama       89082    63595     1932  0.79   2.17  448
## 48                     Cameroon       18973    16540      410  0.00   2.16   15
## 49                      Ukraine      112059    54217     2403  1.79   2.14   55
## 50                     Pakistan      294638   279561     6274  0.15   2.13   28
## 51                    Argentina      370188   268801     7839  2.93   2.12  173
## 52                      Senegal       13186     8852      275  0.00   2.09   16
## 53                      Armenia       43270    36988      864  0.47   2.00  292
## 54                      Nigeria       53021    40281     1010  0.42   1.90    5
## 55                        Japan       65763    52823     1241  2.75   1.89   10
## 56                        India     3315017  2524539    60652  2.10   1.83   44
## 57               Czech Republic       22951    16954      418  1.79   1.82   39
## 58                        Libya       12274     1209      219  3.72   1.78   32
## 59                      Morocco       55864    40586      984  2.45   1.76   27
## 60           Dominican Republic       92557    63478     1613  0.37   1.74  149
## 61                       Russia      975576   792561    16804  0.49   1.72  115
## 62                        Kenya       33016    19296      564  0.65   1.71   10
## 63                  South Korea       18706    14461      313  2.41   1.67    6
## 64                     Paraguay       14872     8134      247  4.53   1.66   35
## 65                     Ethiopia       45221    16311      725  3.51   1.60    6
## 66                  Philippines      205581   133990     3234  1.59   1.57   30
## 67                   Azerbaijan       35707    33281      522  0.42   1.46   51
## 68                   Kazakhstan      105243    94713     1523  0.16   1.45   81
## 69                   Bangladesh      304583   193458     4127  0.81   1.35   25
## 70                  Puerto Rico       31383     2267      412  2.16   1.31  144
## 71                   Madagascar       14554    13582      181  0.00   1.24    7
## 72                 Saudi Arabia      310836   284945     3755  0.00   1.21  108
## 73                   Costa Rica       36307    13317      386  2.84   1.06   76
## 74                      Lebanon       14248     3955      139  4.10   0.98   20
## 75                      Belarus       70974    69378      657  0.00   0.93   70
## 76                    Venezuela       41965    32931      351  1.96   0.84   12
## 77                       Israel      109039    87017      877  1.58   0.80  101
## 78                         Oman       84818    79409      646  0.00   0.76  127
## 79                   Uzbekistan       40338    37116      297  1.38   0.74    9
## 80        Palestinian Territory       20677    14194      141  2.59   0.68   NA
## 81                Côte d'Ivoire       17603    15941      114  0.23   0.65    4
## 82                       Kuwait       82271    73906      521  0.00   0.63  122
## 83                        Ghana       43769    42048      270  0.12   0.62    9
## 84         United Arab Emirates       68511    59472      378  0.72   0.55   38
## 85                        Nepal       35529    20073      183  3.23   0.52    6
## 86                      Bahrain       50393    47049      186  0.63   0.37  109
## 87                        Qatar      117988   114797      195  0.21   0.17   68
## 88                    Singapore       56572    54971       27  0.14   0.05    5

## [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-08-27   China Hong Kong        4755     4200       81    20
## 2 2020-08-27   China   Sichuan         644      619        3     4
## 3 2020-08-27   China     Hebei         362      343        6     2
## 4 2020-08-27   China  Shanghai         888      819        7     2