smart_impactmat function

Create a random VAR model (dxd)(dxd) error impact matrix BBfairly close to the given invertible impact matrix.

Create a random VAR model (dxd)(dxd) error impact matrix BB

fairly close to the given invertible impact matrix.

smart_impactmat generates a random VAR model (dxd)(dxd) error impact matrix BB

fairly close to the given invertible impact matrix.

smart_impactmat(d, B, accuracy, is_regime1 = TRUE)

Arguments

  • B: an invertible (dxd)(dxd) impact matrix specifying expected value of the matrix to be generated. Should have strictly positive diagonal entries in a decreasing order.
  • accuracy: a positive real number adjusting how close to the given impact matrix the returned individual should be. Larger value implies higher accuracy.
  • 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.

Returns

Returns a (d2×1)(d^2 \times 1) vector containing the vectorized impact matrix BB.

  • Maintainer: Savi Virolainen
  • License: GPL-3
  • Last published: 2025-02-27