I would like to create a transition-driven substitution matrix in Stata.
I have, 1734 ids, 88 different states and the total number of observations is 81985.

when I run the following command

Code:
trans2subs sequence_element, id(id) subs(tpr1) diag
I get the too many values r(134) error. Is there a way of getting rid of this error or alternative methods to generate this matrix?