source('./predict.R')

##           country cum_confirm cum_heal cum_dead inc_rate death_rate
## 1   United States      929028   110504    52371     4.77       5.64
## 2           Spain      223759    95708    22902     1.82      10.24
## 3           Italy      192994    60498    25969     1.59      13.46
## 4          France      159828    43493    22245     0.23      13.92
## 5         Germany      155931   116362     5838     1.41       3.74
## 6  United Kingdom      148377     1918    20319     3.42      13.69
## 7          Turkey      104912    21737     2600     3.07       2.48
## 8            Iran       89328    68193     5650     1.29       6.33
## 9           China       84338    78450     4642     0.02       5.50
## 10         Russia       74588     6250      681     8.69       0.91
## 11         Brazil       54043    27655     3704     7.59       6.85
## 12        Belgium       45327    10417     6917     2.33      15.26
## 13         Canada       44856    15469     2294     3.63       5.11
## 14    Netherlands       37190      322     4409     1.79      11.86
## 15    Switzerland       28894    21000     1593     0.76       5.51
## 16          India       24942     5498      780     6.13       3.13
## 17       Portugal       23392     1277      880     2.61       3.76
## 18        Ecuador       22719     1366      576   103.16       2.54
## 19           Peru       21648     7496      634     3.51       2.93
## 20        Ireland       18184     9233     1014     3.28       5.58
## 21         Sweden       18177     1005     2192     3.47      12.06
## 22   Saudi Arabia       16299     2215      136     7.93       0.83
## 23        Austria       15148    12103      536     0.51       3.54
## 24         Israel       15148     6159      198     1.79       1.31
## 25          Japan       13191     2536      351     3.67       2.66
## 26         Mexico       12872     2627     1221    10.65       9.49
## 27      Singapore       12693      956       12     5.12       0.09
## 28          Chile       12306     6327      174     4.18       1.41
## 29       Pakistan       12227     2755      256     9.61       2.09
## 30         Poland       11067     2126      499     2.86       4.51
## 31    South Korea       10718     8635      240     0.09       2.24
## 32        Romania       10635     2890      575     2.09       5.41

## [1] "leading cum_confirm == 0 trimed"

## [1] "Provinces added more than 0 cases in last 1 days:"
##         time country       province cum_confirm cum_heal cum_dead suspected
## 1 2020-04-25   China        Shaanxi         286      253        3         0
## 2 2020-04-25   China   Heilongjiang         935      511       13         0
## 3 2020-04-25   China Inner Mongolia         198      121        1         0
## 4 2020-04-25   China      Hong Kong        1037      753        4         0
## 5 2020-04-25   China       Shanghai         642      558        7         0
## 6 2020-04-25   China      Guangdong        1586     1542        8         0
## 7 2020-04-25   China         Taiwan         429      275        6         0
##   added
## 1     7
## 2     5
## 3     4
## 4     2
## 5     1
## 6     1
## 7     1