| multivar-class {multivar} | R Documentation |
multivar object class
Description
An object class to be used with cv.multivar
Details
To construct an object of class multivar, use the function constructModel
Slots
kNumeric. The number of subjects (or groupings) in the dataset.
nNumeric Vector. Vector containing the number of timepoints for each dataset.
dNumeric Vector. Vector containing the number of variables for each dataset.
AkList. A list (length = k) of lagged (T-lag-horizon) by d multivariate time series.
bkList. A list (length = k) of (T-lag-horizon) by d multivariate time series.
HkList. A list (length = k) of (horizon) by d multivariate time series.
AMatrix. A matrix containing the lagged ((T-lag-horizon)k) by (d+dk) multivariate time series.
bMatrix. A matrix containing the non-lagged ((T-lag-horizon)k) by (d) multivariate time series.
HMatrix. A matrix containing the non-lagged (horizon k) by d multivariate time series.
lagNumeric. The VAR order. Currently only lag 1 is supported.
horizonNumeric. Forecast horizon.
t1Numeric vector. Index of time series in which to start cross validation for individual k.
t2Numeric vector. Index of time series in which to end cross validation for individual k.
lambda1Numeric vector. Regularization parameter 1.
lambda2Numeric vector. Regularization parameter 2.
nlambda1Numeric. Number of lambda1 values to search over. Default is 30.
nlambda2Numeric. Number of lambda2 values to search over. Default is 30.
tolNumeric. Convergence tolerance.
depthNumeric. Depth of grid construction. Default is 1000.
windowNumeric. Size of rolling window.
standardizeLogical. Default is true. Whether to standardize the individual data.
weightestCharacter. How to estimate the first-stage weights. Default is "lasso". Other options include "ridge", "ols" and "var".
canonicalLogical. Default is false. If true, individual datasets are fit to a VAR(1) model.
thresholdLogical. Default is false. If true, and canonical is true, individual transition matrices are thresholded based on significance.
lassotypeCharacter. Default is "adaptive". Choices are "standard" or "adaptive" lasso.
interceptLogical. Default is FALSE.
WMatrix. Default is NULL.
ratiosNumeric vector. Default is NULL.
cvCharacter. Default is "blocked" for k-folds blocked cross-validation. rolling window cross-validation also available using "rolling". If "blocked" is selected the nfolds argument should be specified.
nfoldsNumeric. The number of folds for use with "blocked" cross-validation.
threshNumeric. Post-estimation threshold for setting the individual-level coefficients to zero if their absolute value is smaller than the value provided. Default is zero.
lamadaptLogical. Should the lambdas be calculated adaptively. Default is FALSE.