simulate {BEKKs} | R Documentation |
Method for simulating a N-dimensional BEKK model.
simulate(spec, nobs)
spec |
A spec object of class "bekkSpec" from the function bekk_spec or a fitted bekk model of class "bekkFit" from the bekk_fit function |
nobs |
Number of observations of the simulated sample |
Returns a simulated time series S3 class object using the parameters of passed "bekkSpec" or "bekkFit".
# Simulate a BEKK with estimated parameter
obj_spec <- bekk_spec()
x1 <- bekk_fit(obj_spec, StocksBonds)
x2 <- simulate(x1, 3000)
plot(x2)