list_to_matrix {BGVAR} | R Documentation |
Converts a list to an appropriate input matrix for use of bgvar
.
list_to_matrix(datalist)
datalist |
A list of length |
Note the naming convention. Columns should indicate entity and variable name, separated by a dot, e.g. US.y
.
Returns a matrix of size T times K (number of time periods times number of total variables).
Maximilian Boeck
bgvar
for estimation of a bgvar
object.