bvar.sim | R Documentation |
This function is used to produce simulated realizations which follow a Vector Autorgression (GVAR). It will also automatically simulate coefficients. All parameters can also be set by the user.
bvar.sim(len, M, plag=1, cons=FALSE, trend=FALSE, SV=FALSE)
len |
length of the simulated time series. |
M |
number of endogenous variables. |
plag |
number of lags. |
cons |
logical indicating whether to include an intercept. Default set to |
trend |
logical indicating whether to include an intercept. Default set to |
SV |
logical indicating whether the process should be simulated with or without stochastic volatility. Default set to |
For testing purposes, this function enables to simulate time series processes which can be described by a Global Vector Autoregression. Since stability conditions are not checked, it is only implemented for M=3
.
Returns a list with the following elements
Maximilian Boeck
library(BTSM) sim <- bvar.sim(len=200, M=3, plag=1, cons=TRUE, trend=FALSE, SV=FALSE) Data = sim$obs$xglobal W = sim$obs$W
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.