Predict a regression model with AR errors
predictARX(y, x, prmtrX, prmtrAR, sigma, n.ahead, newxreg, CI.level = 0.95)
response data used to fit the model.
covariate matrix used to fit the model.
regression coefficients for covariates.
AR coefficients for the regression errors.
innovation standard deviation.
the number of steps ahead to predict, default = 1.
the new observations for the coverates x
, default=NULL.
If there is no covariate, the value can be assigned to be NULL
.
Otherwise, a matrix of new observations is required to compute predictions. Default=NULL
.
the CI.level to construct the confidence interval, default = 0.95.