Description Usage Arguments Value Note See Also
View source: R/VAR-1-simulation.R
Given some starting values, coefficients and a sequence of error vectors,
create_varp_data
will compute a sequence of observables using a simple
vector autoregressive process.
1 | create_varp_data(A, Y0, U, nu = 0)
|
A |
A |
Y0 |
A |
U |
A |
nu |
A |
A (K x N+p)
matrix holding the observations. The first p
columns will be equal to Y0
. Column p + 1
will be equal to A \\%*\\% Y0 + U[, 1]
, where U
contains reduced form errors. The final observation
of the K
variables will be in column N+p
.
For a faster implementation, see this solution by Dirk Eddelbuettel.
Other functions for creating data: create_svar_data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.