load_data {argo}R Documentation

Parsing of raw data

Description

Data related to the PNAS paper. Accessed on Nov 14, 2015.

Usage

load_data(type = "extdata", ili.weighted = TRUE)

Arguments

type

the type of the data to be loaded. If type=="extdata" it loads the data to reproduce the PNAS paper, and if type=="athdata" it loads the data to reproduce the CID(?) paper.

ili.weighted

logical indicator to specify whether to load weighted ILI or not, if FALSE unweighted ILI is loaded.

Details

Parse and load CDC's ILI data, Google Flu Trend data, Google Correlate data trained with ILI as of 2010, Google Correlate data trained with ILI as of 2009, Google Trend data with search terms identified from Google Correlate (2010 version).

Each week ends on the Saturday indicated in the xts object

Google Correlate data is standardized by Google, and we rescale it to 0 – 100 during parsing. Google Trends data is in the scale of 0 – 100.

Value

A list of following named xts objects if type=="extdata"

A list of following named xts objects if type=="athdata"

References

Yang, S., Santillana, M., & Kou, S. C. (2015). Accurate estimation of influenza epidemics using Google search data via ARGO. Proceedings of the National Academy of Sciences. <doi:10.1073/pnas.1515373112>.

Examples

system.file("extdata", "correlate-Influenza_like_Illness_h1n1_CDC_.csv", package = "argo")
system.file("extdata", "correlate-Influenza_like_Illness_CDC_.csv", package = "argo")
system.file("extdata", "GFT.csv", package = "argo")
system.file("extdata", "ILINet.csv", package = "argo")
load_data()


[Package argo version 3.0.2 Index]