Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

list_to_matrix

Convert Input List to Matrix


Description

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

Usage

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..

Details

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

Value

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

Author(s)

Maximilian Boeck

See Also


BGVAR

Bayesian Global Vector Autoregressions

v2.2.0
GPL-3
Authors
Maximilian Boeck [aut, cre] (<https://orcid.org/0000-0001-6024-8305>), Martin Feldkircher [aut] (<https://orcid.org/0000-0002-5511-9215>), Florian Huber [aut] (<https://orcid.org/0000-0002-2896-7921>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.