estVARXar(data, subtract.means=FALSE, re.add.means=TRUE, standardize=FALSE,
unstandardize=TRUE, aic=TRUE, max.lag=NULL, method="yule-walker", warn=TRUE)
If aic=TRUE
the number of lags is determined by an AIC statistic (see ar).
If an exogenous (input)
variable is supplied the input and output are combined (i.e.- both
treated as outputs) for estimation, and the resulting model is
converted back by transposing the exogenous variable part of the
polynomial and discarding inappropriate blocks.
Residuals,etc, are calculated by evaluating the estimated model as a
TSmodel/ARMA with the data (ie. residuals are not the residuals from the
regression).
Note: ar uses a Yule-Walker approach (uses autocorrelations) so effectively the model is for data with means removed. Thus subtract.means does not make much difference and re.add.means must be TRUE to get back to a model for the original data.
The conventon for AR(0) and sign are changed to ARMA format. Data should be of class TSdata. The exog. variable is shifted so contemporaneous effects enter. the model for the exog. variable (as estimated by ar() is discarded.
Gilbert, P. D. (1995) Combining VAR Estimation and State Space Model Reduction for Simple Good Predictions. J. of Forecasting: Special Issue on VAR Modelling. 14:229--250.
estSSfromVARX
estSSMittnik
bft
estVARXls
estMaxLik
ar
DSE.ar
data("eg1.DSE.data.diff", package="dse")
model <- estVARXar(eg1.DSE.data.diff)
Run the code above in your browser using DataLab