VAR1_simu | R Documentation |
Simulate a p dimensional VAR1 model with length n. The setting follows Ke et.al.(2019)
VAR1_simu(n, mu, skip = 300, Sigma.mat, rho, err.dist = "t3", ...)
n |
A strictly positive integer corresponding to the length of output series. |
mu |
A |
skip |
A strictly positive integer corresponding to the length of initial series not returned. |
Sigma.mat |
A p x p matrix such that Sigma.mat^2 is the covariance matrix of the error term. |
rho |
A scalar in (0,1) indicating the decay rate of the transition matrix for lag-k term as the k grows. |
err.dist |
A |
... |
Additional arguments. |
A p x n matrix corresponding to the simulated data
Haotian Xu
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")
dim(X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.