[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: return the maximum and its corresponding value of a matrix in Mata
I have a question regarding Mata. Suppose I have an imaginary matrix
with two columns as follows,
I want Mata to return the maximum values of column 1 (x) AND its
corresonding values in column 2 (y), in this example, 2.9479707 and
0.15. I understand I can use -rowmax- to find the maximum, but I am
not quite sure how to find the corresponding value.
Le Wang, Ph.D.
Minnesota Population Center
University of Minnesota
* For searches and help try: