Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: row number corresponding to a column maximum


From   Glenn Goldsmith <glenn.goldsmith@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: row number corresponding to a column maximum
Date   Wed, 29 Jul 2009 00:03:01 +0100

<>

Kit wrote of Gabi's previous solution:

> I can't see how that can work with colmax(A)[1,j] being hardcoded to look at only the first row of A.

I wondered about this as well at first, but the parentheses mean that
it's hardcoded to look at the first (and only) row of the rowvector
returned by colmax()- rather than the first row of A, so it's not
actually a problem.

Best,

Glenn.
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index