simu.VAR1 {changepoints} | R Documentation |
Simulate from a VAR1 model (without change point).
Description
Simulate data of size n and dimension p from a VAR1 model (without change point) with Gaussian i.i.d. error terms.
Usage
simu.VAR1(sigma, p, n, A, vzero = NULL)
Arguments
sigma |
A |
p |
An |
n |
An |
A |
A |
vzero |
A |
Value
A p-by-n matrix.
Author(s)
Daren Wang
References
Wang, Yu, Rinaldo and Willett (2019) <arxiv:1909.06359>
Examples
p = 10
sigma = 1
n = 100
A = matrix(rnorm(p*p), nrow = p)*0.1 # transition matrix
simu.VAR1(sigma, p, n, A)
[Package changepoints version 1.1.0 Index]