fitVARX {sparsevar} | R Documentation |
Multivariate VARX estimation
Description
A function to estimate a (possibly high-dimensional) multivariate VARX time series using penalized least squares methods, such as ENET, SCAD or MC+.
Usage
fitVARX(data, p = 1, Xt, m = 1, penalty = "ENET", method = "cv", ...)
Arguments
data |
the data from the time series: variables in columns and observations in rows |
p |
order of the VAR model |
Xt |
the exogenous variables |
m |
order of the exogenous variables |
penalty |
the penalty function to use. Possible values are |
method |
possible values are |
... |
the options for the estimation. Global options are:
|
Value
A
the list (of length p
) of the estimated matrices of the process
fit
the results of the penalized LS estimation
mse
the mean square error of the cross validation
time
elapsed time for the estimation
residuals
the time series of the residuals