Simulates a timeseries using VAR parameters
simulateVAR(pars, means = 0, lags = 1, Nt = 100, init, residuals = 0.1,
burnin)
A square matrix or a list of square matrices indicating the VAR parameters
A vector of means.
The lags to which the 'pars' argument parameters correspond. If 'pars' is a list then this argument should be a vector indicating which lags are represented by each element of the 'pars' list.
Number of time points
Initial setup. Must be a matrix of the first lags with rows corresponding to time points and columns corresponding to variables (e.g., if only two lags are used then the matrix must have two rows indicating the first two times points.)
Standard deviation of the residuals or a residual covariance matrix
Initial simulations not returned. Defaults to min(round(Nt/2), 100)
.
Sacha Epskamp (mail@sachaepskamp.com), Marie K. Deserno (m.k.deserno@uva.nl) and Laura F. Bringmann (laura.bringmann@ppw.kuleuven.be)