list_to_matrix function

Convert Input List to Matrix

Convert Input List to Matrix

Converts a list to an appropriate input matrix for use of bgvar.

list_to_matrix(datalist)

Arguments

  • datalist: A list of length N which contains each a matrix of size T times k, where T are time periods and k variables per entity.

Returns

Returns a matrix of size T times K (number of time periods times number of total variables).

Details

Note the naming convention. Columns should indicate entity and variable name, separated by a dot, e.g. US.y.

See Also

bgvar for estimation of a bgvar object.

Author(s)

Maximilian Boeck

  • Maintainer: Maximilian Boeck
  • License: GPL-3
  • Last published: 2024-09-30