Create a helper function to autogenerate the specification matrix for SparseVAR and SparseVARX. These matrices are used to determine which endogeneous variables are regressed on which other endogenous variables. This can be determined by clustering similar time series together