Hi all,
I wonder if its possible get column name matrix for a especific condition ie: max value in the matrix.
Until now I only van get the names all matrix:
My goal its to get the column name for the max value in the matrix= three =3 for rep78
I try with below, but names were removed:
Please any comment i will grateful
Thanks in advance
Ro
I wonder if its possible get column name matrix for a especific condition ie: max value in the matrix.
Until now I only van get the names all matrix:
HTML Code:
sysuse auto, clear tabulate foreign rep78, matcell(x) matrix list x x[2,5] one two three four five r1 2 8 27 9 2 r2 0 0 3 9 9 matrix colnames x= one two three four five mat lis x local ma : coln (x)
My goal its to get the column name for the max value in the matrix= three =3 for rep78
I try with below, but names were removed:
HTML Code:
mata : st_matrix("x", max(st_matrix("x"))) matrix list x c1 r1 27
Please any comment i will grateful
Thanks in advance
Ro
Comment