get_future_indicators: Get future indicators

Description Usage Arguments Value Examples

View source: R/get_future_indicators.R

Description

Get future infection_rate, removed_rate, active_cases and confirmed cases.

Usage

1
get_future_indicators(indicators, velocity, Beginning_Time)

Arguments

indicators

dataframe that stores indicators calculate by get_indicators():

  • date: the exact day in the formate "%y-%m-%d" as a character

  • confirmed: the daily confirmed cases at the given date

  • recovered: the daily recovered cases at the given date

  • deaths: the daily deaths at the given daten

  • cum_confirmed: the cumulative confirmed cases

  • active_cases: The number of infectious cases in hospital

  • infection_rate: The daily infection rate

  • removed_rate: the daily removed rate

velocity

A list contains infection_rate_velocity, removed_rate_velocity, and 2 corrected vector c(T, M) used to calculate the above 2 indicators which may be needed in later calculation.

Beginning_Time

the selection of beginning time, which must be in the formate "%y-%m-%d" as a character.

Value

dataframe with 4 predicted indicators:

Examples

1
2
3
4
5
Beginning_Time <- "2020-01-29"
M <- 5
indicators <- get_indicators(DemoPreTurningPointsCOVID19::COVID19_CN)
velocity <- calc_velocity(indicators, M, Beginning_Time)
pre_data <- get_future_indicators(indicators, velocity, Beginning_Time)

YuanchenZhu2020/DemoPreTurningPointsCOVID19 documentation built on Aug. 17, 2020, 12:24 a.m.