repair.JP: COVID-19 Data Checking and Reparing (CDCAR)

Description Usage Arguments Details Value

View source: R/repair.JP.R

Description

This function repairs the abnormal data in covid-19 data (or similar type of data including the count time series and epidemic data).

Usage

1
2
3
4
5
6
7
8
9
repair.JP(
  dat.I.JP = list(),
  dat.D.JP = list(),
  dat.I = list(),
  dat.D = list(),
  level = "county",
  h = 7,
  date.start = as.Date("2020-03-01")
)

Arguments

dat.I.JP

A data frame or list containing the time series of death cases with outliers. NA in the dataset indicates the data points that need repairment.

dat.I

A data frame or list containing the time series of infected cases.

dat.D

A data frame or list containing the time series of death cases.

level

Level of data repairment. Level "county" represents county level data repairment, and level "state" means state level data repairment. Default is set to "county".

h

Parameter used in data repairment. For repair methods "AR" and "ARMA", this parameter controls the number of lags in time series modeling. For repair methods "CLEP" and "STEM", this parameter controls the time window for model fitting.

date.start

Trace back date. Default is "2020-03-01".

Details

This R package is the implementation program for article entitled "Comparing and Integrating US COVID-19 Data from Multiple Sources: A County-Level Dataset with Local Features" by Guannan Wang, Zhiling Gu, Xinyi Li, Shan Yu, Myungjin Kim, Yueying Wang, Lei Gao, and Li Wang.

Value

A data frame or list containing the repaired time series, including the infection cases and/or death cases.


covid19-dashboard-us/cdcar documentation built on Jan. 3, 2021, 4:58 p.m.