options(width = 100)
source('./predict.R')
## [1] "2020-10-18"
##                              country cum_confirm cum_heal cum_dead inc_r d_rate d_pm
## 1                               Peru      865549   774356    33702  0.00   3.89 1022
## 2                            Belgium      213115    21074    10392  5.42   4.88  897
## 3                            Bolivia      139710   104202     8463  0.11   6.06  725
## 4                             Brazil     5235344  4635315   153905  0.21   2.94  724
## 5                              Spain      982723   196958    33775  0.37   3.44  722
## 6                              Chile      491760   463943    13635  0.36   2.77  713
## 7                            Ecuador      153289   134187    12387  0.57   8.08  702
## 8                      United States     8386978  5453315   224728  0.53   2.68  679
## 9                             Mexico      847108   615680    86059  0.00  10.16  667
## 10                    United Kingdom      722409     1918    43646  2.41   6.04  643
## 11                             Italy      414241   251461    36543  2.91   8.82  604
## 12                            Panama      124745   101041     2564  0.51   2.06  594
## 13                            Sweden      103200     4971     5918  0.00   5.73  586
## 14                         Argentina      989680   803965    26267  0.71   2.65  581
## 15                          Colombia      959572   858294    28970  0.76   3.02  569
## 16                            France      897034   104696    33477  3.44   3.73  513
## 17                       Netherlands      228234      322     6751  3.72   2.96  394
## 18                           Moldova       67050    47842     1584  0.60   2.36  393
## 19                        Montenegro       15615    10994      236  1.22   1.51  376
## 20                           Ireland       49962    23364     1852  2.64   3.71  375
## 21                           Armenia       64694    48104     1081  2.69   1.67  365
## 22                              Iran      530380   427400    30375  0.74   5.73  362
## 23                      South Africa      703793   634543    18471  0.24   2.62  311
## 24                           Romania      180388   130894     5872  2.22   3.26  305
## 25            Bosnia and Herzegovina       34112    24995      984  1.64   2.88  300
## 26                       Puerto Rico       57293     2267      766  1.14   1.34  268
## 27                            Canada      198148   167112     9760  0.93   4.93  259
## 28                          Honduras       87594    34662     2563  1.04   2.93  259
## 29                              Iraq      426634   360477    10254  0.73   2.40  255
## 30                            Israel      303109   268093     2209  0.11   0.73  255
## 31                       Switzerland       74422    50600     2123  0.00   2.85  245
## 32                        Costa Rica       95514    58816     1183  0.00   1.24  232
## 33                     French Guiana       10243     9982       69  0.00   0.67  231
## 34                              Oman      109953    95624     1101  0.60   1.00  216
## 35                          Portugal       99911    59000     2181  1.89   2.18  214
## 36                        Luxembourg       10888     8468      133  1.69   1.22  212
## 37                Dominican Republic      121347    98207     2199  0.35   1.81  203
## 38                         Guatemala      101360    90610     3530  0.33   3.48  197
## 39                           Bahrain       77902    74320      300  0.43   0.39  176
## 40                        Kyrgyzstan       52044    45736     1111  1.08   2.13  170
## 41                          Paraguay       54724    36068     1188  0.96   2.17  167
## 42                            Russia     1399334  1070576    24187  1.09   1.73  166
## 43                            Kuwait      116146   107860      701  0.57   0.60  164
## 44                           Albania       17055    10071      451  1.68   2.64  157
## 45                      Saudi Arabia      342202   328538     5185  0.10   1.52  149
## 46                       El Salvador       31666    27000      922  0.67   2.91  142
## 47                          Bulgaria       29503    16943      986  4.37   3.34  142
## 48                    Czech Republic      171487    69090     1402  2.55   0.82  131
## 49                           Ukraine      298872   125377     5607  1.78   1.88  128
## 50                           Germany      366426   291842     9901  1.36   2.70  118
## 51                           Hungary       46290    14088     1142  3.29   2.47  118
## 52                           Denmark       35893    29741      680  2.92   1.89  117
## 53                            Turkey      347493   304003     9296  0.53   2.68  110
## 54                             Libya       48790    26889      725  1.98   1.49  106
## 55                           Austria       64806    49561      893  2.65   1.38   99
## 56                           Belarus       87698    79757      929  0.73   1.06   98
## 57                            Poland      175766    92651     3573  2.84   2.03   94
## 58                        Kazakhstan      109406   105001     1768  1.02   1.62   94
## 59                          Slovenia       13142     6313      188  5.85   1.43   90
## 60                            Serbia       36160    31536      776  0.60   2.15   89
## 61                           Croatia       25580    20053      363  1.51   1.42   88
## 62                             India     7547762  6658937   114629  0.73   1.52   83
## 63                           Morocco      173632   143972     2928  2.85   1.69   79
## 64                             Qatar      129431   126406      224  0.16   0.17   78
## 65                           Lebanon       62286    28062      520  1.60   0.83   76
## 66                          Maldives       11210    10164       37  0.29   0.33   68
## 67                           Finland       13424     9100      351  0.99   2.61   63
## 68                        Azerbaijan       44964    40037      626  1.46   1.39   62
## 69                       Philippines      356618   310158     6652  0.64   1.87   61
## 70                             Egypt      105424    98247     6120  0.12   5.81   60
## 71                           Tunisia       40542     5032      626  0.00   1.54   53
## 72                           Namibia       12293    10422      131  0.24   1.07   52
## 73                            Norway       16457    11863      278  1.06   1.69   51
## 74                            Greece       25370     9989      509  1.76   2.01   49
## 75              United Arab Emirates      115602   107516      463  1.06   0.40   47
## 76                         Indonesia      361867   285324    12511  1.15   3.46   46
## 77                           Algeria       54402    38088     1856  0.72   3.41   42
## 78                       Afghanistan       40200    33614     1492  0.15   3.71   38
## 79                         Australia       27391    25108      904  0.03   3.30   35
## 80                        Bangladesh      388569   303972     5660  0.33   1.46   34
## 81                            Jordan       37573     6912      345  4.22   0.92   34
## 82                           Georgia       17477     8060      136  3.97   0.78   34
## 83                          Pakistan      323019   307069     6654  0.18   2.06   30
## 84                         Venezuela       86636    79694      736  1.02   0.85   26
## 85                             Nepal      132246    92166      739  2.28   0.56   25
## 86                            Zambia       15853    15005      346  0.41   2.18   19
## 87                           Senegal       15418    13814      317  0.17   2.06   19
## 88                             Sudan       13691     6764      836  0.00   6.11   19
## 89                        Uzbekistan       63124    60080      525  0.50   0.83   16
## 90                           Myanmar       36025    17076      880  1.65   2.44   16
## 91                          Slovakia       29835     7359       88  2.50   0.29   16
## 92                          Cameroon       21441    20117      423  0.00   1.97   16
## 93                             Kenya       44881    31857      832  1.55   1.85   15
## 94                             Japan       93219    85485     1675  0.46   1.80   13
## 95                          Ethiopia       89137    42649     1352  0.79   1.52   12
## 96                             Ghana       47310    46618      310  0.24   0.66   10
## 97                       South Korea       25199    23312      444  1.77   1.76    9
## 98                        Madagascar       16810    16215      238  2.69   1.42    9
## 99                        Tajikistan       10493     9511       80  0.36   0.76    8
## 100                         Malaysia       20498    13262      187  0.97   0.91    6
## 101                          Nigeria       61440    56611     1125  0.25   1.83    5
## 102                        Singapore       57911    57807       28  0.01   0.05    5
## 103                    Côte d'Ivoire       20323    20021      121  3.55   0.60    5
## 104                           Guinea       11518    10427       70  0.35   0.61    5
## 105                            China       91507    86312     4746  0.02   5.19    3
## 106                       Mozambique       10866     8513       75  2.07   0.69    2
## 107                           Uganda       10590     6992       97  1.29   0.92    2
## 108            Palestinian Territory       47135    40498      408  0.83   0.87   NA
## 109     Republika Severna Makedonija       23628    17239      834  1.84   3.53   NA
## 110 Democratic Republic of the Congo       11006    10356      302  0.05   2.74   NA

## [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-10-18   China  Shanghai        1090     1011        7     5
## 2 2020-10-18   China Hong Kong        5241     4973      105     4
## 3 2020-10-18   China Guangdong        1884     1840        8     3
## 4 2020-10-18   China   Shaanxi         436      406        3     2
## 5 2020-10-18   China   Tianjin         254      240        3     2
## 6 2020-10-18   China    Shanxi         209      204        0     1