matrix_to_list function

Convert Input Matrix to List

Convert Input Matrix to List

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

matrix_to_list(datamat)

Arguments

  • datamat: A matrix of size T times K, where T are time periods and K total amount of variables.

Returns

returns a list of length N (number of entities).

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