Hi All,
I am looking to get the rowname of the max value in a matrix and store it as a local. I have got to the following steps easy enough:
I cannot figure how to use "st_matrixrowstripe" to return the rowname. I am also assuming (correctly or not) that there is a way of combining the max(st_matrix()) and st_matrixrowstripe() components in a single line? Then, I'll only need to use st_local() extract the row name corresponding to the max value in the matrix for further use within Stata...
Thank you in advance!
Ariel
I am looking to get the rowname of the max value in a matrix and store it as a local. I have got to the following steps easy enough:
Code:
sysuse auto tab foreign, matcell(XX) mata : max(st_matrix("XX"))
Thank you in advance!
Ariel
Comment