options(width = 100)
source('./predict.R')
## [1] "2020-10-31"
##                              country cum_confirm cum_heal cum_dead inc_r d_rate d_pm
## 1                             Mexico      918811   673457    91289  0.66   9.94  708
## 2                            Ecuador      168192   141759    12670  1.14   7.53  718
## 3                            Bolivia      141631   111178     8715  0.10   6.15  747
## 4                              Sudan       13804     6764      837  0.23   6.06   19
## 5                              Egypt      107376    99353     6258  0.16   5.83   61
## 6                               Iran      612772   481930    34864  1.29   5.69  415
## 7                              Italy      679430   289426    38618 10.19   5.68  639
## 8                              China       91921    86654     4746  0.03   5.16    3
## 9                             Sweden      124355     4971     5938  0.00   4.78  588
## 10                    United Kingdom     1011660     1918    46555  4.80   4.60  686
## 11                            Canada      234433   195795    10136  2.58   4.32  269
## 12                              Peru      902503   825197    34476  0.55   3.82 1046
## 13                       Afghanistan       41425    34321     1536  0.22   3.71   39
## 14                         Guatemala      107939    97289     3729  1.08   3.45  208
## 15                           Algeria       57942    40201     1964  1.06   3.39   45
## 16                         Indonesia      410088   337801    13869  0.77   3.38   51
## 17                         Australia       27590    25324      907  0.04   3.29   36
## 18      Republika Severna Makedonija       31572    20731      994  6.81   3.15   NA
## 19                           Ireland       61456    23364     1913  1.92   3.11  387
## 20                          Colombia     1074184   969230    31314  2.00   2.92  615
## 21                       El Salvador       33445    29186      975  0.00   2.92  150
## 22                            Brazil     5535460  4966264   159883  0.71   2.89  752
## 23                           Romania      241339   172513     6968  2.44   2.89  362
## 24                             Spain     1264517   196958    35878  2.07   2.84  767
## 25                             Chile      510256   486642    14207  0.63   2.78  743
## 26                           Belgium      412314    24906    11452  5.11   2.78  988
## 27                          Honduras       96888    40129     2669  0.77   2.75  269
## 28                            Turkey      375367   323971    10252  1.22   2.73  122
## 29  Democratic Republic of the Congo       11306    10585      307  0.47   2.72   NA
## 30                            France     1367625   117658    36788  6.62   2.69  564
## 31                      South Africa      725452   654182    19276  0.51   2.66  325
## 32                         Argentina     1157179   961101    30792  1.17   2.66  681
## 33                            Angola       10805     4523      284  5.22   2.63    9
## 34                     United States     9399268  6057345   236057  1.97   2.51  713
## 35                          Bulgaria       51041    19877     1254  6.00   2.46  180
## 36            Bosnia and Herzegovina       50090    28083     1234  4.06   2.46  376
## 37                           Albania       20875    11189      509  2.76   2.44  177
## 38                           Moldova       76040    55782     1785  2.43   2.35  442
## 39                           Myanmar       52706    32774     1237  4.57   2.35   23
## 40                           Hungary       75321    19032     1750  5.47   2.32  181
## 41                              Iraq      472630   399655    10910  0.42   2.31  271
## 42                          Paraguay       62596    42337     1387  0.88   2.22  194
## 43                           Finland       16113    11300      358  1.28   2.22   65
## 44                           Tunisia       59813     5032     1317  3.07   2.20  111
## 45                            Zambia       16432    15680      349  0.66   2.12   19
## 46                       Netherlands      351178      322     7395  2.87   2.11  432
## 47                           Senegal       15616    14853      324  0.07   2.07   19
## 48                          Pakistan      332993   314066     6806  0.24   2.04   31
## 49                            Panama      132867   109369     2688  0.62   2.02  623
## 50                           Germany      526056   351127    10543  5.68   2.00  126
## 51                          Cameroon       21793    20117      426  0.00   1.95   16
## 52                        Kyrgyzstan       58878    49983     1144  0.83   1.94  175
## 53                       Philippines      380729   331046     7221  0.47   1.90   66
## 54                           Ukraine      387481   158928     7196  2.31   1.86  165
## 55                           Nigeria       62691    58430     1144  0.27   1.82    6
## 56                             Kenya       55192    35876      981  4.90   1.78   18
## 57                Dominican Republic      127018   104862     2245  0.88   1.77  207
## 58                          Portugal      141279    80280     2507  6.53   1.77  246
## 59                            Serbia       46954    31536      820  7.71   1.75   94
## 60                             Japan      100577    92475     1756  0.00   1.75   14
## 61                       South Korea       26511    24311      464  0.48   1.75    9
## 62                            Russia     1618116  1215414    27990  1.13   1.73  192
## 63                           Morocco      219084   181275     3695  3.32   1.69  100
## 64                        Montenegro       18341    14084      301  3.35   1.64  479
## 65                        Kazakhstan      111953   106310     1825  0.41   1.63   97
## 66                            Greece       39251     9989      626 10.54   1.59   60
## 67                      Saudi Arabia      347282   333842     5402  0.12   1.56  155
## 68                            Poland      362731   140280     5631  6.42   1.55  149
## 69                           Denmark       46862    35019      721  5.20   1.54  124
## 70                          Ethiopia       96169    52517     1469  0.91   1.53   13
## 71                           Armenia       89813    55317     1341  2.72   1.49  453
## 72                             India     8182881  7489203   122149  1.15   1.49   89
## 73                       Switzerland      154251    65200     2286  0.00   1.48  264
## 74                        Bangladesh      407684   324145     5923  0.32   1.45   36
## 75                        Madagascar       16968    16301      244  0.00   1.44    9
## 76                             Libya       61095    35030      857  0.77   1.40  125
## 77                            Norway       20214    11863      282  3.04   1.40   52
## 78                        Azerbaijan       55269    43543      730  2.02   1.32   72
## 79                        Costa Rica      109971    66719     1385  2.23   1.26  272
## 80                       Puerto Rico       66128     2267      822  2.05   1.24  287
## 81                            Jordan       72607     7600      829 11.05   1.14   81
## 82                           Croatia       49316    32818      546  5.95   1.11  133
## 83                         Lithuania       14824     4872      165  7.24   1.11   61
## 84                           Austria      104925    67226     1109  5.37   1.06  123
## 85                              Oman      114434   103060     1208  0.00   1.06  237
## 86                           Namibia       12935    11036      133  0.60   1.03   52
## 87                           Belarus       98482    86663      980  1.01   1.00  104
## 88                          Slovenia       34307    12091      338  5.55   0.99  163
## 89                    Czech Republic      330445   137950     3197  6.57   0.97  299
## 90             Palestinian Territory       53520    46309      483  0.84   0.90   NA
## 91                            Uganda       12410     7503      110  1.71   0.89    2
## 92                        Luxembourg       17933    10081      157  9.64   0.88  251
## 93                         Venezuela       91589    86335      793  0.34   0.87   28
## 94                        Uzbekistan       66628    63864      563  0.13   0.84   17
## 95                            Israel      314422   301241     2539  0.23   0.81  293
## 96                           Georgia       38936    22691      307  4.49   0.79   77
## 97                          Malaysia       31548    21248      249  2.13   0.79    8
## 98                           Lebanon       81228    41624      637  4.44   0.78   93
## 99                        Tajikistan       11017    10233       82  0.36   0.74    9
## 100                       Mozambique       12869    10437       92  2.75   0.71    3
## 101                            Ghana       48055    47169      320  0.00   0.67   10
## 102                    French Guiana       10536     9995       70  1.06   0.66  234
## 103                           Kuwait      125926   116862      779  0.47   0.62  182
## 104                    Côte d'Ivoire       20716    20365      126  0.43   0.61    5
## 105                           Guinea       12072    10550       72  0.43   0.60    5
## 106                            Nepal      170743   131222      937  1.49   0.55   32
## 107                          Bahrain       81466    78365      320  0.25   0.39  188
## 108                         Slovakia       57664    12617      219  4.67   0.38   40
## 109             United Arab Emirates      132629   128902      495  0.85   0.37   50
## 110                         Maldives       11659    10814       38  0.37   0.33   70
## 111                        Sri Lanka       10663     4399       20  8.91   0.19    1
## 112                            Qatar      132556   129583      232  0.16   0.18   81
## 113                        Singapore       58015    57913       28  0.02   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-10-31   China          Gansu         177      168        2     6
## 2  2020-10-31   China       Shanghai        1181     1074        7     5
## 3  2020-10-31   China      Hong Kong        5323     5089      105     3
## 4  2020-10-31   China      Guangdong        1922     1882        8     3
## 5  2020-10-31   China       Xinjiang         956      899        3     3
## 6  2020-10-31   China Inner Mongolia         291      270        1     3
## 7  2020-10-31   China          Hunan        1020     1015        4     1
## 8  2020-10-31   China        Sichuan         744      710        3     1
## 9  2020-10-31   China         Taiwan         555      515        7     1
## 10 2020-10-31   China         Hainan         171      165        6     1