options(width = 100)
source('./predict.R')
## [1] "2020-11-22"
##                              country cum_confirm cum_heal cum_dead inc_r d_rate d_pm
## 1                      United States    12457447  7404807   261841  1.42   2.10  791
## 2                              India     9107622  8530803   133385  0.52   1.46   97
## 3                             Brazil     6052786  5429158   169016  0.54   2.79  795
## 4                             France     2127051   149521    48518  0.85   2.28  743
## 5                             Russia     2089329  1595443    36179  1.19   1.73  248
## 6                              Spain     1589219   196958    42619  0.00   2.68  912
## 7                     United Kingdom     1493383     1918    54626  1.35   3.66  805
## 8                              Italy     1380531   539524    49261  2.58   3.57  815
## 9                          Argentina     1366182  1187053    36902  0.53   2.70  816
## 10                          Colombia     1240493  1144923    35104  0.57   2.83  690
## 11                            Mexico     1032688   774930   101373  0.65   9.82  786
## 12                              Peru      948081   876399    35549  0.21   3.75 1078
## 13                           Germany      924162   603729    14262  2.49   1.54  170
## 14                            Poland      861331   423971    13618  2.12   1.58  360
## 15                              Iran      854361   603445    44802  1.55   5.24  533
## 16                      South Africa      765409   707784    20845  0.35   2.72  351
## 17                           Ukraine      624744   286917    10951  1.97   1.75  250
## 18                           Belgium      556904    35810    15522  0.58   2.79 1339
## 19                             Chile      539143   514584    15030  0.29   2.79  786
## 20                              Iraq      535321   465452    11958  0.33   2.23  297
## 21                         Indonesia      497668   418188    15884  0.88   3.19   58
## 22                    Czech Republic      490750   394830     7095  0.65   1.45  663
## 23                       Netherlands      484648      322     8891  1.12   1.83  519
## 24                        Bangladesh      447341   362428     6388  0.46   1.43   39
## 25                            Turkey      440805   370825    12219  1.27   2.77  145
## 26                       Philippines      418818   386486     8123  0.47   1.94   74
## 27                           Romania      418645   295148    10047  1.41   2.40  522
## 28                          Pakistan      374173   329828     7662  0.72   2.05   35
## 29                      Saudi Arabia      355258   343371     5780  0.06   1.63  166
## 30                            Israel      328613   317348     2757  0.26   0.84  319
## 31                            Canada      325711   260398    11406  1.56   3.50  302
## 32                           Morocco      320962   266711     5256  1.49   1.64  142
## 33                       Switzerland      290601   180700     4031  0.00   1.39  466
## 34                          Portugal      255970   169379     3824  2.59   1.49  375
## 35                           Austria      247188   169260     2388  2.16   0.97  265
## 36                             Nepal      220308   199024     1321  0.76   0.60   45
## 37                            Sweden      208295     4971     6406  0.00   3.08  634
## 38                           Ecuador      184876   160639    13139  0.56   7.11  745
## 39                            Jordan      178161   108353     2172  2.19   1.22  213
## 40                           Hungary      174618    42915     3800  2.54   2.18  393
## 41              United Arab Emirates      158990   148871      552  0.76   0.35   56
## 42                            Panama      153577   134360     2946  0.85   1.92  683
## 43                           Bolivia      143922   119180     8904  0.05   6.19  763
## 44                            Kuwait      140056   132178      866  0.23   0.62  203
## 45                Dominican Republic      137770   112090     2308  0.72   1.68  213
## 46                             Qatar      137229   134282      236  0.12   0.17   82
## 47                             Japan      133116   111163     2001  3.71   1.50   16
## 48                        Costa Rica      129418    79372     1608  0.00   1.24  316
## 49                           Armenia      126224    94090     1952  1.11   1.55  659
## 50                        Kazakhstan      125466   112292     1945  0.61   1.55  104
## 51                           Belarus      123999   103848     1096  1.28   0.88  116
## 52                              Oman      122081   113269     1380  0.59   1.13  270
## 53                          Bulgaria      120697    35752     2820  1.92   2.34  406
## 54                         Guatemala      118417   107241     4074  0.56   3.44  227
## 55                            Serbia      116125    31536     1168  5.23   1.01  134
## 56                           Lebanon      115283    66135      894  1.43   0.78  131
## 57                             Egypt      112676   101783     6535  0.32   5.80   64
## 58                          Ethiopia      105352    65534     1636  0.45   1.55   14
## 59                           Georgia      104732    85639      976  4.02   0.93  245
## 60                          Honduras      104435    46208     2857  0.85   2.74  288
## 61                           Croatia      103718    82380     1353  3.29   1.30  330
## 62                         Venezuela       99435    94355      869  0.42   0.87   31
## 63                           Moldova       96689    78112     2130  1.37   2.20  528
## 64                          Slovakia       96241    45883      671  1.03   0.70  123
## 65                        Azerbaijan       93094    63841     1131  6.80   1.21  112
## 66                             China       92733    87346     4749  0.09   5.12    3
## 67                            Greece       90121     9989     1527  2.63   1.69  147
## 68                           Tunisia       87471    61402     2752  1.40   3.15  233
## 69                           Bahrain       85591    83617      338  0.15   0.39  199
## 70                       Puerto Rico       84307    38237     1012  1.69   1.20  354
## 71            Bosnia and Herzegovina       79309    43793     2246  1.69   2.83  685
## 72                           Myanmar       79246    58758     1739  1.80   2.19   32
## 73                             Libya       77823    48914     1089  1.32   1.40  158
## 74                             Kenya       76404    51352     1366  1.61   1.79   25
## 75                          Paraguay       75857    53988     1652  1.06   2.18  232
## 76                           Algeria       73774    48183     2255  1.40   3.06   51
## 77             Palestinian Territory       71644    59021      636  1.98   0.89   NA
## 78                        Uzbekistan       71552    68711      603  0.27   0.84   18
## 79                           Denmark       70152    54949      781  1.85   1.11  135
## 80                           Ireland       70143    23364     2022  0.49   2.88  409
## 81                        Kyrgyzstan       69581    60811     1231  0.62   1.77  189
## 82                           Nigeria       66228    61884     1166  0.37   1.76    6
## 83                          Slovenia       65308    44137     1052  1.62   1.61  506
## 84                         Singapore       58160    58064       28  0.02   0.05    5
## 85                          Malaysia       54775    41597      335  2.04   0.61   10
## 86      Republika Severna Makedonija       53631    31659     1487  2.25   2.77   NA
## 87                             Ghana       50874    49405      323  0.31   0.63   10
## 88                         Lithuania       47047    10945      386  5.16   0.82  142
## 89                       Afghanistan       44706    35934     1687  0.46   3.77   43
## 90                       El Salvador       37562    34297     1075  0.84   2.86  166
## 91                            Norway       32352    20956      306  1.06   0.95   56
## 92                           Albania       32196    15469      685  2.34   2.13  238
## 93                       South Korea       30733    26466      505  1.09   1.64   10
## 94                        Montenegro       30653    19129      434  1.91   1.42  691
## 95                        Luxembourg       30333    20014      262  1.92   0.86  419
## 96                         Australia       27821    25522      907  0.05   3.26   36
## 97                          Cameroon       23528    22177      435  0.00   1.85   16
## 98                           Finland       21639    15300      375  1.99   1.73   68
## 99                     Côte d'Ivoire       21126    20777      129  0.13   0.61    5
## 100                        Sri Lanka       19946    14069       83  2.09   0.42    4
## 101                           Uganda       17667     8611      168  1.35   0.95    4
## 102                           Zambia       17424    16701      357  0.17   2.05   19
## 103                       Madagascar       17341    16657      251  0.18   1.45    9
## 104                          Senegal       15882    15488      330  0.11   2.08   20
## 105                            Sudan       15839     9727     1193  1.99   7.53   27
## 106                       Mozambique       14981    13151      123  0.70   0.82    4
## 107                           Angola       14413     7273      336  1.02   2.33   10
## 108                          Namibia       13811    13209      145  0.72   1.05   57
## 109                           Latvia       13120     1635      153  2.95   1.17   81
## 110                 French Polynesia       12978     4842       63  0.00   0.49  224
## 111                           Guinea       12826    11838       75  0.22   0.58    6
## 112                         Maldives       12578    11559       46  0.26   0.37   85
## 113 Democratic Republic of the Congo       12180    11300      327  0.42   2.68   NA
## 114                       Tajikistan       11854    11229       86  0.33   0.73    9
## 115                    French Guiana       11014     9995       70  0.25   0.64  234
## 116                          Jamaica       10240     5481      237  0.88   2.31   80
## 117                       Cape Verde       10234     9649      104  0.81   1.02   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-11-22   China Hong Kong        5628     5259      108    68
## 2  2020-11-22   China    Taiwan         617      548        7     6
## 3  2020-11-22   China Guangdong        1979     1939        8     4
## 4  2020-11-22   China    Fujian         473      434        1     4
## 5  2020-11-22   China  Shanghai        1308     1236        7     3
## 6  2020-11-22   China   Shaanxi         492      447        3     2
## 7  2020-11-22   China   Tianjin         298      277        3     2
## 8  2020-11-22   China  Zhejiang        1293     1283        1     1
## 9  2020-11-22   China   Beijing         950      936        9     1
## 10 2020-11-22   China   Sichuan         797      745        3     1