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

RE: st: RE: historical maximum


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: RE: historical maximum
Date   Tue, 27 Sep 2005 16:56:15 +0100

Glad it was useful. By the way, omit "large"
when reading my comment. 

Nick 
n.j.cox@durham.ac.uk 

Eric G. Wruck

> Thanks for pointing this out -- I think I have been 
> needlessly coding around a non-problem.
 
> >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 . ?

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