powered by
Converts a list to an appropriate input matrix for use of bgvar.
bgvar
list_to_matrix(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.
N
Returns a matrix of size T times K (number of time periods times number of total variables).
Note the naming convention. Columns should indicate entity and variable name, separated by a dot, e.g. US.y.
US.y
bgvar for estimation of a bgvar object.