Vertical concatenation of many vectors Mata/Stata -
i working mata (stata) trying append (vertically concatenate) many vectors.
mat c = a\b
but since have 300 column vectors append in unique column vector, know if there command (since quite difficult type
mat c = c1\c2\c3...
300 times).
the code cite stata's matrix language, not mata.
how did these vectors in first place? named systematically?
there easy answer depending on details.
for example, in stata can go column vectors c1
... c300
mat c = c1 forval j = 2/300 { mat c = c \ c`j' }
although matsize
limit may mean better off handling such column vector stata variable or in mata.
edit: produce matrix in stata columns, use ,
not \
.
Comments
Post a Comment