Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Round


From   federica dm <[email protected]>
To   [email protected]
Subject   st: Round
Date   Tue, 31 Jan 2006 18:16:05 +0100 (CET)

Dear Statalistmembers,

I would like to know how to round the last number for
a continuous variable, such as income, to unity.
I&#8217;ll try to be more explicit whit an example;
supposing that the variable is like that:

N. Obs.    varY
1	    0.003
2	    0.045
3	    0.050
.
.
2348	  .9999986
2349	  .9999986
2350	  .9999986

  and I would like to round only the last 3 numbers to
1, what should I do?

Thank you!
Federica







___________________________________
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
http://mail.yahoo.it
*
*   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