| tvpbvar.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.
tvpbvar.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   | 
sparse.coef | 
 sparsification of coefficients, has to be provided as percentage between zero and one.  | 
sparse.tvp | 
 sparsification of time-variation, has to be provided as percentage between zero and one.  | 
tvp.var | 
 variance of state process governing the time-variation in the coefficients  | 
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 <- tvpbvar.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.