calc_velocity: Compute the velocity of K and I

Description Usage Arguments Value Examples

View source: R/calc_velocity.R

Description

Compute the velocity of infection rate K change and completion rate I change.

Usage

1
calc_velocity(indicators, M, 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

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.

Value

A list contains 4 elements:

Examples

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

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