check_data: Check the data is in the correct form

Description Usage Arguments Value

View source: R/argumentChecks.R

Description

check_data checks the data.

Usage

1

Arguments

data

a matrix or class 'ts' object with d>1 columns. Each column is taken to represent a univariate time series. NA values are not supported.

p

a positive integer specifying the autoregressive order of the model.

Value

Checks the data and tries to correct it. Throws an error if something is wrong and returns the corrected data otherwise.


saviviro/gmvarkit documentation built on Oct. 25, 2021, 2:14 a.m.