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

RE: st: RE: historical maximum


From   "Nick Cox" <[email protected]>
To   <[email protected]>
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 
[email protected] 

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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index