options(width = 100)
source('./predict.R')
## [1] "2020-11-19"
##                              country cum_confirm cum_heal cum_dead inc_r d_rate d_pm
## 1                      United States    11880288  7169719   256372  1.56   2.16  775
## 2                             Brazil     5947403  5389863   167497  0.60   2.82  788
## 3                              India     8960098  8383602   131639  0.52   1.47   95
## 4                             Mexico     1015071   762025    99528  0.39   9.81  772
## 5                     United Kingdom     1430341     1918    53274  1.39   3.72  785
## 6                              Italy     1272352   481967    47217  2.77   3.71  781
## 7                             France     2065138   145391    46698  1.39   2.26  715
## 8                               Iran      815117   583704    43417  1.65   5.33  517
## 9                              Spain     1542467   196958    42039  0.48   2.73  899
## 10                         Argentina     1339337  1156474    36347  0.78   2.71  804
## 11                              Peru      941951   869165    35402  0.21   3.76 1074
## 12                            Russia     2015608  1526656    34850  1.19   1.73  239
## 13                          Colombia     1218003  1125184    34563  0.57   2.84  679
## 14                      South Africa      757144   701534    20556  0.38   2.71  347
## 15                         Indonesia      483518   406612    15600  1.00   3.23   57
## 16                           Belgium      545787    34249    15025  0.96   2.75 1296
## 17                             Chile      534558   510766    14897  0.18   2.79  779
## 18                           Germany      859139   562554    13563  2.66   1.58  162
## 19                           Ecuador      182250   160639    13052  0.63   7.16  740
## 20                            Poland      796798   361886    12088  3.10   1.52  319
## 21                              Iraq      529226   457490    11834  0.45   2.24  294
## 22                            Turkey      425628   361655    11820  1.00   2.78  140
## 23                            Canada      311109   248321    11186  1.51   3.60  296
## 24                           Ukraine      583510   266479    10369  2.34   1.78  237
## 25                           Romania      393851   269590     9596  2.63   2.44  499
## 26                           Bolivia      143569   118333     8875  0.07   6.18  760
## 27                       Netherlands      467257      322     8771  1.22   1.88  512
## 28                       Philippines      413430   374939     7998  0.32   1.93   73
## 29                          Pakistan      365927   326674     7248  0.70   1.98   33
## 30                    Czech Republic      475284   367574     6740  1.17   1.42  629
## 31                             Egypt      111613   101421     6495  0.30   5.82   63
## 32                            Sweden      201055     4971     6340  2.35   3.15  628
## 33                        Bangladesh      441159   356722     6305  0.54   1.43   38
## 34                      Saudi Arabia      354527   341956     5729  0.09   1.62  165
## 35                           Morocco      306995   253351     5013  1.79   1.63  136
## 36                             China       92544    87277     4749  0.06   5.13    3
## 37                         Guatemala      116381   105708     4008  0.56   3.44  224
## 38                       Switzerland      285655   180700     3827  1.78   1.34  442
## 39                          Portugal      236015   153702     3632  2.56   1.54  356
## 40                           Hungary      161461    36345     3472  2.87   2.15  359
## 41                            Panama      149833   129755     2907  0.75   1.94  674
## 42                          Honduras      103488    45082     2839  0.00   2.74  287
## 43                            Israel      326628   315508     2739  0.20   0.84  316
## 44                           Tunisia       83772    58229     2541  2.51   3.03  215
## 45                          Bulgaria      110536    32480     2530  3.69   2.29  364
## 46                Dominican Republic      135157   110871     2293  0.34   1.70  211
## 47                           Algeria       70629    46326     2206  1.49   3.12   50
## 48            Bosnia and Herzegovina       76757    41031     2153  1.56   2.80  656
## 49                           Austria      228683   149541     2116  3.16   0.93  235
## 50                           Moldova       92519    74229     2072  1.77   2.24  514
## 51                           Ireland       69058    23364     2006  0.54   2.90  406
## 52                            Jordan      163926    94896     1969  5.09   1.20  193
## 53                             Japan      125921   106954     1950  1.92   1.55   15
## 54                        Kazakhstan      123097   111172     1945  0.62   1.58  104
## 55                           Armenia      121979    88388     1870  1.26   1.53  631
## 56                           Myanmar       74882    55633     1676  2.13   2.24   31
## 57                       Afghanistan       44228    35350     1650  0.86   3.73   42
## 58                          Paraguay       73639    52608     1624  1.07   2.21  228
## 59                          Ethiopia      103928    64593     1601  0.52   1.54   14
## 60                        Costa Rica      127012    78238     1588  1.13   1.25  312
## 61      Republika Severna Makedonija       50015    29583     1397  2.88   2.79   NA
## 62                              Oman      121360   112406     1365  0.19   1.12  267
## 63                             Kenya       72686    49878     1313  1.33   1.81   24
## 64                            Greece       82034     9989     1288  4.07   1.57  124
## 65                             Nepal      215020   185638     1276  0.99   0.59   44
## 66                        Kyrgyzstan       68316    59362     1217  0.62   1.78  187
## 67                           Croatia       93879    74865     1200  3.49   1.28  292
## 68                             Sudan       15047     9609     1175  0.00   7.81   27
## 69                           Nigeria       65693    61457     1163  0.36   1.77    6
## 70                            Serbia       97988    31536     1081  6.08   1.10  124
## 71                           Belarus      119390    99584     1074  1.17   0.90  114
## 72                             Libya       76006    46793     1062  0.72   1.40  155
## 73                       El Salvador       36965    33517     1061  0.81   2.87  164
## 74                        Azerbaijan       83994    59465     1053  3.19   1.25  104
## 75                       Puerto Rico       81050    36675      971  0.81   1.20  339
## 76                          Slovenia       61028    40153      964  3.53   1.58  464
## 77                         Australia       27785    25506      907  0.03   3.26   36
## 78                         Venezuela       98350    93390      860  0.31   0.87   30
## 79                            Kuwait      138822   130426      859  0.35   0.62  201
## 80                           Georgia       93092    73877      853  4.14   0.92  214
## 81                           Lebanon      110037    62528      852  1.93   0.77  125
## 82                           Denmark       66324    51729      770  1.93   1.16  133
## 83                           Albania       29837    14216      646  2.44   2.17  224
## 84                        Uzbekistan       70921    68123      601  0.29   0.85   18
## 85             Palestinian Territory       67296    57469      598  1.68   0.89   NA
## 86                          Slovakia       91578    38695      579  1.85   0.63  106
## 87              United Arab Emirates      155254   146469      544  0.75   0.35   55
## 88                       South Korea       29654    26098      498  1.17   1.68   10
## 89                          Cameroon       22896    21510      433  0.00   1.89   16
## 90                        Montenegro       29031    18410      414  2.25   1.43  659
## 91                           Finland       20286    15300      374  1.76   1.84   68
## 92                            Zambia       17350    16591      356  0.41   2.05   19
## 93                         Lithuania       40492    10008      341  4.33   0.84  125
## 94                           Bahrain       85182    83087      337  0.20   0.40  198
## 95                            Angola       13922     6623      332  0.75   2.38   10
## 96                           Senegal       15835    15440      329  0.08   2.08   20
## 97                          Malaysia       51680    38132      326  2.56   0.63   10
## 98  Democratic Republic of the Congo       11918    11190      323  0.44   2.71   NA
## 99                             Ghana       50457    48710      323  0.00   0.64   10
## 100                           Norway       30770    19025      305  2.18   0.99   56
## 101                       Madagascar       17310    16592      250  0.00   1.44    9
## 102                       Luxembourg       28573    18504      248  3.22   0.87  396
## 103                            Qatar      136649   133691      235  0.15   0.17   82
## 104                          Jamaica       10019     5369      233  0.60   2.33   79
## 105                           Uganda       16905     8394      157  2.06   0.93    3
## 106                           Latvia       11722     1557      141  3.22   1.20   75
## 107                          Namibia       13610    13152      140  0.32   1.03   55
## 108                    Côte d'Ivoire       21045    20712      129  0.20   0.61    5
## 109                       Mozambique       14629    12754      119  0.43   0.81    4
## 110                       Cape Verde       10000     9484      104  0.40   1.04   NA
## 111                       Tajikistan       11731    11105       86  0.00   0.73    9
## 112                           Guinea       12713    11689       75  0.24   0.59    6
## 113                    French Guiana       10930     9995       70  0.28   0.64  234
## 114                        Sri Lanka       18645    12903       69  1.84   0.37    3
## 115                 French Polynesia       12587     4842       62  1.82   0.49  221
## 116                         Maldives       12384    11406       45  0.23   0.36   83
## 117                        Singapore       58139    58046       28  0.01   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-11-19   China Hong Kong        5491     5233      108    12
## 2 2020-11-19   China   Sichuan         796      744        3     4
## 3 2020-11-19   China   Tianjin         295      276        3     4
## 4 2020-11-19   China Guangdong        1975     1933        8     3
## 5 2020-11-19   China    Taiwan         609      545        7     2
## 6 2020-11-19   China    Fujian         463      431        1     2
## 7 2020-11-19   China  Zhejiang        1292     1283        1     1
## 8 2020-11-19   China  Shanghai        1286     1223        7     1
## 9 2020-11-19   China   Beijing         948      936        9     1