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

st: RE: RE: RE: observation about float()

From   "Nick Cox" <>
To   <>
Subject   st: RE: RE: RE: observation about float()
Date   Wed, 25 Sep 2002 20:18:45 +0100


> Thanks, Nick.  Your code with -egen- is simplier.  However, 
> you will get the
> same problem.  The values for "median" in Q1 are 1.4300001 
> and float()
> doesn't recognize this value.
> 	.list if median=float(1.43)
> 	.(no observations)

No; my point was that you don't ever need to do this, 
at least in this territory, and I believe elsewhere. 

Select on the quantile group, which will always be 
an integer, and never on the quantile. 

(Naturally, you actually typed == not = above.) 


*   For searches and help try:

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