Description Usage Arguments Value Examples
Integrate functions above, and handle a special situation (removedrate > 1).
1 | prediction(RawData, M, Beginning_Time)
|
RawData |
dataframe with data and four ordered variables, i.e.
|
M |
the selection of time window. |
Beginning_Time |
the selection of beginning time, which must be in the formate "%y-%m-%d" as a character. |
List contains important info. in the calculation:
Beginning_Time: Hyper Param. the selection of beginning time, which must be in the formate "%y-%m-%d" as a character.
M: Hyper Param. the selection of time window.
indicators: the iconic indicators generated from real data.
velocity: A list contains 4 elements:
infection_rate_velocity: the velocity of K.
removed_rate_velocity: the velocity of I.
corr.infection: vvector of corrected M_K and T_K.
corr.removed: vector of corrected M_I and T_I.
pre_indicators: dataframe with 4 future indicators:
date: the exact day in the formate "%y-%m-%d" as a character
infection_rate.pre: prediction result of infection rate
removed_rate.pre: prediction result of removed_rate
active_cases.pre: prediction result of active_cases
confirmed.pre: prediction result of confirmed cases
mileposts: dataframe contains 4 milepost T.1, T.2, Z.1, Z.2, which must be in the formate "%y-%m-%d" as a character.
1 2 3 | Beginning_Time = "2020-01-29"
M <- 5
result <- prediction(COVID19_CN, M, Beginning_Time)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.