spec_block_cv | R Documentation |
As the title
spec_block_cv(X, S, h, lag, tau.vec, ...)
X |
A pxn matrix of observated multivariate time series. |
S |
A strictly positive integer corresponding to the chosen number of non-overlapping blocks. |
h |
A strictly positive integer corresponding to how many neighboring blocks will be removed. |
lag |
A strictly non-negative integer corresponding to the lag of the autocovariance. |
tau.vec |
A |
... |
Additional arguments. |
A numeric
vector of cross validation errors (in l2 norm), corresponding to the tau.vec.
Haotian Xu and Stephane Guerrier
n = 100
p = 50
Sigma = diag(1, p)
set.seed(123)
X = VAR1_simu(n = n, mu = rep(0, p), skip = 300, Sigma.mat = Sigma, rho = 0.7, err.dist = "pareto")
tau.vec = seq(from = 10, to = 100, length.out = 10)
spec_block_cv(X, S = 10, h = 1, lag = 1, tau.vec)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.