Nick Cox wrote:
gen Z = max(X, Y)
is even simpler.
--------------------------------------------------------------------------------
The List is great for dispelling id�es fixes: for some reason, I had got it
into my head a long time ago that -max()- doesn't work for variables
(probably attempted to use ranges of variables as the argument at one time
or another), and had never bothered to consider the function again in such a
context.
Thanks, Nick.
Joseph Coveney
*
* 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/