Usage
constructModel(Y, p, struct, gran, RVAR = FALSE, h = 1, cv = "Rolling",
MN = FALSE, verbose = TRUE, IC = TRUE, VARX = list(),
T1 = floor(nrow(Y)/3), T2 = floor(2 * nrow(Y)/3), ONESE = FALSE,
ownlambdas = FALSE, alpha = as.double(NULL), recursive = FALSE)
Arguments
Y
$T \times k$ multivariate time series or Y $T \times (k+m)$ endogenous and exogenous series, respectively
p
Predetermined maximal lag order (for modeled series)
struct
The choice of penalty structure (see details).
gran
vector of penalty parameter specifications.
RVAR
True or False: whether to refit based upon the support selected using the Relaxed-VAR procedure
h
Desired forecast horizon
cv
Cross-validation approach, either "Rolling" for rolling cross-validation or "LOO" for leave-one-out cross-validation.
MN
Minnesota Prior Indicator
verbose
Verbose output while estimating
IC
True or False: whether to include AIC and BIC benchmarks
VARX
List containing VARX model specifications.
T1
Index of time series in which to start cross validation
T2
Index of times series in which to start forecast evaluation
ONESE
True or False: whether to use the "One Standard Error Heuristic"
ownlambdas
True or False: Indicator for user-supplied penalty parameters
alpha
grid of candidate parameters for the alpha in the Sparse Lag and Sparse Own/Other VARX-L
recursive
True or False: Indicator as to whether iterative multi-step predictions are desired in the VAR context if the forecast horizon is greater than 1