create_pred: Wrapper function for predictions

Description Usage Arguments Value

Description

This function takes a inputs for geography and timelines and does three main things: (1) It loads the baseline data. (2) It loads the current prediction models. (3) It creates predictions for the specified geography and timelines. Accomplished via other function calls.

Usage

1
create_pred(geography, begMonth, endMonth, dt_center = "2012-01-01")

Arguments

geography

Character scalar. In: c("usa", "can", "jap", "lt", "uk", "ger", "fra", "cmg", "iEUR")

begMonth

The beginning month for which to create a dataset from. Format= "YYYY-MM-DD"

endMonth

The ending month for which to create a dataset from. Format= "YYYY-MM-DD"

dt_center

The centering date. Should be "2012-01-01" unless models are refreshed.

Value

A list with two elements, each of which are lists. Firstly, a list of the geography's baseline data. Second, a list of predictions for each model


alexWhitworth/concord documentation built on May 11, 2019, 11:25 p.m.