/DemoPreTurningPointsCOVID19

R Packages of paper <Tracking_and_forecasting_milepost_moments_of_the_epidemic_in_the_early_outbreak__framework_and_applications_to_the_COVID_19>

Primary LanguageRCreative Commons Zero v1.0 UniversalCC0-1.0

DemoPreTurningPointsCOVID19

This R package aims to implementing the computational framework in the paper Tracking and forecasting milepost moments of the epidemic in the early outbreak framework and applications to the COVID-19 based entirly on the Vicky-Zh’s work.

Installation

You can install it as a binary package or source package.

Install from binary:

Install from source code:

# install as a binary package.
# 1. download binary package to your PC
# 2. get the path of package file
install.packages(pkgfilepath, repos = NULL)

# install as a source code package (requires RTools)
# install.packages("devtools")
devtools::install_github("YuanchenZhu2020/DemoPreTurningPointsCOVID19")

Usage

Function List:

  • get_indicators
  • calc_velocity
  • get_future_indicators
  • corr_removed_rate
  • get_milepost
  • prediction
  • period_predict
  • prediction

Dataset List:

  • COVID19_CN

If you want to see details of each function or dataset, use help(name). Or you can download the referance manual.

Example

library(DemoPreTurningPointsCOVID19)
# single begining time
single_result <- prediction(COVID19_CN, M = 5, Beginning_Time = "2020-01-29")

# multiple begining time
period_result <- period_predict(COVID19_CN, M = 5, Beginning_Time = "2020-01-29", period = 32)