predict.fastVAR.VARX: VARX Predict

Description Usage Arguments Examples

View source: R/fastVARX.R

Description

Predict n steps ahead from a fastVAR.VARX object

Usage

1
2
3
  ## S3 method for class 'fastVAR.VARX'
 predict(VARX, xnew, n.ahead = 1,
    threshold, ...)

Arguments

VARX

an object of class fastVAR.VARX returned from VARX

xnew

a matrix of future values for the exogenous inputs. Should contain n.ahead rows

n.ahead

number of steps to predict

threshold

threshold prediction values to be greater than this value

...

extra parameters to pass into the coefficients method for objects of type fastVAR.VARX

Examples

1
2
3
data(Canada)
  x = matrix(rnorm(84*4), 84, 4)
  predict(VARX(Canada, x = x, p = 3, b = 2, intercept = F), xnew = matrix(rnorm(2*4),2,4), n.ahead = 2)

jeffwong/fastVAR documentation built on May 19, 2019, 4:02 a.m.