gen d = max(a, b, c)
Nick
[email protected]
[email protected]
Consider these three columns, a, b, c:
a b c | d
------------------
1 . . | 1
. . 5 | 5
. 0.2 . | 0.2
2 . . | 2
where "." mean no data. Each line has only a box different
from "."? Starting from the first three columns, I would
like to form a new column "d", as in the example above.
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/