Description Usage Arguments Value Details Note See Also Examples
View source: R/SVAR-1-simulation.R
Given some starting values, coefficients, a sequence of structural error
vectors, and a matrix of contemporaneous impact effects of those errors,
create_varp_data
will compute a sequence of observables using a simple
vector autoregressive process.
1 | create_svar_data(A, B, Y0, W)
|
A |
A |
B |
A |
Y0 |
A |
W |
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
.
short-run restriction implemented
could just pass structural errors to creat_varp_data; however, here, it's documented.
For a faster implementation, see this solution by Dirk Eddelbuettel.
Other functions for creating data: create_varp_data
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.