View source: R/generateParams.R
random_impactmat | R Documentation |
random_impactmat
generates random VAR model (dxd)
impact matrix B
with its elements drawn from specific normal distributions (see the source code). If not the first
regime, will create the matrix B_m*
.
random_impactmat(d, B_scale, is_regime1 = TRUE)
B_scale |
a size |
is_regime1 |
is the impact matrix for Regime 1? Regime 1 impact matrix is constrained so the elements in its first row are in a decreasing ordering and the diagonal elements are strictly positive. |
If the impact matrix is not for Regime 1, will create the matrix B_m*
, which is related
to the impact matrix B_m
of Regime m as B_m* = B_m - B_1
.
Returns a (d^2 \times 1)
vector containing the vectorized impact matrix B
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.