source('./predict.R')

## [1] "2020-08-08"
##                         country cum_confirm cum_heal cum_dead inc_r d_rate d_pm
## 1                 United States     5098494  2618025   164144  1.29   3.22  496
## 2                        Brazil     2967064  2068394    99702  1.70   3.36  469
## 3                         India     2097962  1433513    42690  2.83   2.03   31
## 4                        Russia      882347   690207    14854  0.59   1.68  102
## 5                  South Africa      545476   394759     9909  1.35   1.82  167
## 6                         Chile      368825   342168     9958  0.59   2.70  521
## 7                          Peru      463875   314332    20649  1.86   4.45  626
## 8                        Mexico      469407   313386    51311  1.45  10.93  398
## 9                          Iran      324692   282122    18264  0.66   5.63  217
## 10                     Pakistan      283487   259604     6068  0.30   2.14   27
## 11                 Saudi Arabia      287262   250440     3130  0.51   1.09   90
## 12                       Turkey      238450   221574     5813  0.50   2.44   69
## 13                        Italy      249756   201642    35190  0.22  14.09  582
## 14                      Germany      216734   200426     9356  0.52   4.32  112
## 15                     Colombia      367196   198495    12250  2.65   3.34  241
## 16                        Spain      361442   196958    28503  1.95   7.89  610
## 17                   Bangladesh      255113   146604     3365  1.03   1.32   20
## 18                        Qatar      112650   109438      182  0.24   0.16   63
## 19                       Canada      118985   103435     8970  0.36   7.54  238
## 20                    Argentina      235677   103297     4411  3.28   1.87   98
## 21                         Iraq      144064   103197     5236  0.00   3.63  130
## 22                       France      197921    82836    30324  1.17  15.32  465
## 23                        China       89128    82402     4688  0.11   5.26    3
## 24                    Indonesia      123503    79306     5658  1.88   4.58   21
## 25                         Oman       81357    73481      509  0.36   0.63  100
## 26                   Kazakhstan       97829    71609     1058  0.94   1.08   56
## 27                      Ecuador       91969    71463     5897  1.58   6.41  334
## 28                  Philippines      126885    67117     2209  3.37   1.74   20
## 29                      Belarus       68738    64744      585  0.34   0.85   62
## 30                       Kuwait       71199    62806      474  0.67   0.67  111
## 31         United Arab Emirates       62300    56245      356  0.39   0.57   36
## 32                       Israel       80991    55313      581  0.70   0.72   67
## 33                        Egypt       95147    50553     4971  0.15   5.22   49
## 34                    Singapore       54929    48312       27  0.24   0.05    5
## 35                       Panama       72560    46675     1591  1.60   2.19  369
## 36                      Ukraine       79750    43655     1879  1.90   2.36   43
## 37                    Guatemala       55270    43135     2168  1.71   3.92  121
## 38           Dominican Republic       77709    41393     1259  1.53   1.62  116
## 39                      Bahrain       43307    40276      159  0.97   0.37   93
## 40                     Portugal       52351    38087     1746  0.56   3.34  171
## 41                        Ghana       40533    37702      206  1.09   0.51    7
## 42                       Poland       51167    36403     1800  1.68   3.52   48
## 43                      Nigeria       45687    32637      936  0.98   2.05    5
## 44                      Armenia       40185    32395      785  0.50   1.95  265
## 45                  Switzerland       36451    31900     1986  0.50   5.45  229
## 46                        Japan       47464    31307     1042  3.42   2.20    8
## 47                   Kyrgyzstan       39571    31062     1459  1.04   3.69  224
## 48                   Azerbaijan       33481    30056      488  0.31   1.46   48
## 49                      Romania       60623    29872     2659  2.28   4.39  138
## 50                      Bolivia       87891    28139     3524  1.70   4.01  302
## 51                  Afghanistan       37054    25960     1312  0.11   3.54   34
## 52                      Algeria       34155    23667     1282  1.57   3.75   29
## 53                      Ireland       26470    23364     1772  0.37   6.69  359
## 54                      Morocco       30662    21548      461  3.43   1.50   12
## 55                   Uzbekistan       29652    21006      187  2.93   0.63    6
## 56                      Austria       21919    19812      721  0.38   3.29   80
## 57                      Moldova       26990    18918      835  1.36   3.09  207
## 58                      Belgium       72784    17728     9866  1.07  13.56  851
## 59                        Nepal       22592    16313       73  1.70   0.32    3
## 60                     Cameroon       17718    15320      391  0.00   2.21   15
## 61                       Serbia       27863    14047      632  1.94   2.27   72
## 62                  South Korea       14562    13629      304  0.30   2.09    6
## 63                      Denmark       14747    13046      617  1.10   4.18  107
## 64                Côte d'Ivoire       16524    12802      104  0.47   0.63    4
## 65               Czech Republic       18060    12749      389  1.86   2.15   36
## 66                    Venezuela       24166    12470      208  3.81   0.86    7
## 67                    Australia       20698    11320      278  2.10   1.34   11
## 68                        Kenya       25138    11118      413  2.98   1.64    8
## 69                   Madagascar       12922    10604      141  1.68   1.09    5
## 70                     Ethiopia       21452     9415      380  2.64   1.77    3
## 71                  El Salvador       19544     9392      536  0.00   2.74   83
## 72        Palestinian Territory       13928     7706       95  1.50   0.68   NA
## 73                     Bulgaria       13209     7622      442  1.50   3.35   64
## 74 Republika Severna Makedonija       11554     7607      519  1.36   4.49   NA
## 75       Bosnia and Herzegovina       13687     7373      394  0.00   2.88  120
## 76                      Senegal       11003     7329      229  1.07   2.08   14
## 77                   Costa Rica       22081     7266      218  4.80   0.99   43
## 78                     Honduras       46365     6355     1465  1.33   3.16  148
## 79                        Sudan       11894     6243      773  0.97   6.50   18
## 80                       Sweden       82323     4971     5763  0.43   7.00  571
## 81               United Kingdom      309005     1918    46511  0.28  15.05  685
## 82                  Netherlands       57987      322     6157  0.85  10.62  359
## 83                  Puerto Rico       20686        0      265  3.77   1.28   93

## [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-08   China Hong Kong        4007     2755       47    69
## 2 2020-08-08   China  Xinjiang         824      211        3    25
## 3 2020-08-08   China  Shanghai         766      730        7     2
## 4 2020-08-08   China    Taiwan         479      441        7     2
## 5 2020-08-08   China  Zhejiang        1271     1268        1     1
## 6 2020-08-08   China  Shandong         806      788        7     1
## 7 2020-08-08   China     Hubei       68139    63623     4512     1
## 8 2020-08-08   China Guangdong        1688     1664        8     1