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

RE: st: rounding down (and up)

From   "Nick Cox" <>
To   <>
Subject   RE: st: rounding down (and up)
Date   Mon, 23 Jun 2003 13:32:47 +0100

Bill Rising replied to me 
> When I've taught Stata in the classroom, I've always 
> avoided -recode- 
> because it seemed to kludgy, and taught the use of -int- 
> (rather than 
> -floor-, since the data were always positive - something I 
> shouldn't have 
> done.)

On the other hand, -floor()- has only been an official 
function since Stata 8. Before that, you had to do it 
by a composite function call, such as 
-sign() * int(abs())-. I would rather teach -floor()- than 

*   For searches and help try:

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