Andrew Musau - I have 116,000 student-class observations, so when I ran your code, adjusted to my data, I stopped the computation process some 15 minutes. I think it will work great like in the example in the thread, but not in my case, unfortunately.
Code:
mat A= J(7, 7, 7) mat l A local rownames: rown A mat colnames A= `rownames' mat l A
Code:
. mat A= J(7, 7, 7)
.
. mat l A
symmetric A[7,7]
c1 c2 c3 c4 c5 c6 c7
r1 7
r2 7 7
r3 7 7 7
r4 7 7 7 7
r5 7 7 7 7 7
r6 7 7 7 7 7 7
r7 7 7 7 7 7 7 7
.
. local rownames: rown A
.
. mat colnames A= `rownames'
.
. mat l A
symmetric A[7,7]
r1 r2 r3 r4 r5 r6 r7
r1 7
r2 7 7
r3 7 7 7
r4 7 7 7 7
r5 7 7 7 7 7
r6 7 7 7 7 7 7
r7 7 7 7 7 7 7 7

Comment