Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: RE: historical maximum


From   "Eric G. Wruck" <ewruck@econalytics.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: historical maximum
Date   Tue, 27 Sep 2005 10:18:53 -0400

Thanks for pointing this out -- I think I have been needlessly coding around a non-problem.

EGW


>A key point about missing values is that in Stata
>
>max(large known number, missing)
>
>is always "large known number". This may
>come as a surprise once you have learned
>the hard way that in Stata numeric missing
>is treated as higher than any non-missing
>number. But usually it is a feature. What
>do you want
>
>max(0, 1, 2.71828, 3.14159, 42, .)
>
>to return? 42 or . ?
>
>Nick
>n.j.cox@durham.ac.uk


-- 

===================================================

       Eric G. Wruck
       Econalytics
       2535 Sherwood Road
       Columbus, OH  43209

       ph:      614.231.5034
       cell:    614.330.8846
       eFax:    614.573.6639
       eMail:   ewruck@econalytics.com
       website: http://www.econalytics.com

====================================================
*
*   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/



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