| VARshrink | R Documentation |
Shrinkage estimation methods for high-dimensional VAR models. Consider VAR(p) model:
y_t = A_1 y_{t-1} + \cdots + A_p y_{t-p} + C d_t + e_t,
where y_t is K-dimensional time series,
d_t is deterministic regressors, e_t is a noise process, and
A_1, \ldots, A_p, and C are coefficient matrices.
Exogenous variables can be included additionally as regressors.
VARshrink(
y,
p = 1,
type = c("const", "trend", "both", "none"),
season = NULL,
exogen = NULL,
method = c("ridge", "ns", "fbayes", "sbayes", "kcv"),
lambda = NULL,
lambda_var = NULL,
dof = Inf,
...
)
y |
A T-by-K matrix of endogenous variables |
p |
Integer for the lag order |
type |
Type of deterministic regressors to include.
1) |
season |
An integer value of frequency for inclusion of
centered seasonal dummy variables. |
exogen |
A T-by-L matrix of exogenous variables. Default is |
method |
1) |
lambda, lambda_var |
Shrinkage parameter value(s). Use of this parameter is slightly different for each method: the same value does not imply the same shrinkage estimates. |
dof |
Degree of freedom of multivariate t-distribution for noise.
Valid only for |
... |
Extra arguments to pass to a specific function of the
estimation method. For example, burnincycle and mcmccycle are for
|
Shrinkage estimation methods can estimate the coefficients even when the dimensionality K is larger than the number of observations.
An object of class "varshrinkest" with the components: varresult, datamat, y, type, p, K, obs, totobs, restrictions, method, lambda, call. The class "varshrinkest" inherits the class "varest" in the package vars.
data(Canada, package = "vars")
y <- diff(Canada)
VARshrink(y, p = 2, type = "const", method = "ridge")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.