DataInput: Low-level interface to retrieve and convert .csv files into a...

Description Usage Arguments Details Value

Description

This function takes an input path, reads the file with read.csv, and creates a zoo object with the specified time sequence.

Usage

1
.DataInput(inputfile, start = 1992, end = 2016, freq = 1, transf = NULL)

Arguments

inputfile

a character string indicating the path of the file to be read.

start

the start date. Should be inserted as in ts.

end

the end date.

freq

the frequency for the time interval.

transf

an optional transformation to be given to the data before creating the zoo object.

Details

The function only accepts data with either numeric, logical, or integer values. It also adds an extra column "i0" to be used for constructing the model intercepts. If there are more end years than data, the function pads the additional rows with NA's. This interface is called by the forecasting functions when creating the Bayesian samples.

Value

a zoo object.


gamalamboy/stresstest documentation built on May 17, 2019, 1:33 p.m.